001-onboot.sh 492 B

123456789101112131415
  1. #!/bin/bash
  2. # Scripts in this directory will be executed by cloud-init on the first boot of droplets
  3. # created from your image. Things ike generating passwords, configuration requiring IP address
  4. # or other items that will be unique to each instance should be done in scripts here.
  5. openssl rand -base64 32 > /etc/wiki/.db-secret
  6. if [[ -z $DATABASE_URL ]]; then
  7. docker start db
  8. fi
  9. docker start wiki
  10. docker start wiki-update-companion
  11. # docker start nginx-proxy
  12. # docker start watchtower