Skip to content

Instantly share code, notes, and snippets.

@pixeline
Created June 1, 2019 11:52
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pixeline/6d57e68aa6c1357b14c14fe8e3b4b963 to your computer and use it in GitHub Desktop.
Save pixeline/6d57e68aa6c1357b14c14fe8e3b4b963 to your computer and use it in GitHub Desktop.
Deploy a "docker-composed" environment on DigitalOcean

Deploy docker-compose on digitalocean

  1. create Docker droplet via digitalocean one-click-app-docker
  2. log into it
  3. generate SSH key
ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa
  1. Copy it
cat /root/.ssh/id_rsa.pub
  1. Add the key to your github profile : Adding a new SSH key to your GitHub account - GitHub Help
  2. create local folder on droplet to contain the project
  3. cd into it & git clone the repository
  4. git pull
  5. cd into the folder containing docker-compose.yml
  6. launch docker compose: docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment