- Install docker on the server, start docker daemon (https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7)
- Make sure that docker daemon is running!!!
- Install docker-compose on the server (https://docs.docker.com/compose/install/#install-compose)
- Make a directory for the project
- In new directory, make a file called
docker-compose.yml
- Grab the latest version of the
docker-compose.yml
file from this git repo, and paste the contents into the server's newdocker-compose.yml
file - Copy the nginx configuration from this repo to the folder on the remote
- Run the following:
sudo docker-compose up
. Note that this can be run with the-d
flag to run it detached (in background) so that you can keep doing stuff with your user account.
For the above, it may be easier to just clone this repo to the remote.