/digital-ocean

Docker image for provisioning a Digital Ocean Server

Primary LanguageVimL

Docker image for provisioning a Digital Ocean Server

Setup

  1. cp .env.example .env
  2. Update .env with your Personal Access Token and other info about your server
  3. Copy the private ssh key that you want to use with that droplet into private_ssh_key folder. Make sure that you name it the same as SSH_KEY in the .key file.

Run

docker-compose run app ./create-droplet   # create new droplet
docker-compose run app ./install          # installs everything you need on the droplet

Everything you put in the home folder will be copied to the home of the dev user. The last output will be the ssh command to your new droplet.

Ansible note

If you want to generate different crypted password you can use this command:

mkpasswd --method=SHA-512 <password to crypt>

(ansible docs)