The preparation of server is fully automated right now with Debian and Ubuntu operating systems (OS). Try to select the latest versions of these OSs to be fully updated and to get latest version of Docker. With DigitalOcean we prefer to select Debian 9.5 or Ubuntu 16.04 version. Installation usually takes around 5-10 minutes per server. You can contribute or report issue in goodservers/docker-server repository. What you need:
rootssh access to the server
Copy this command in console and through ssh command
ssh root@your server ip login to your server and run.
Sometimes it happens that during the installation is shown some dialog window. It usually happens for config files (when new package contains new configuration options). But for now you can decide to "Keep installed version". The installation script updates your packages on server, installs
docker-compose utilities add
user account and setup neeeded containers. Feel free to check the source code.
When the installation is finished. You could see the statuses for all docker containers:
The installation process is now waiting for the last necessary step for setup password less access to you server through
This pair will be used for access from Gitlab to server in CI deploy task of each your projects.
1and paste your public key. After that press
CTRL+xand save the configuration. This key will be paired together with user account.
2) and the console shows you your private key, so just copy and save it securely to future usage in Gitlab pipelines (this is last time when server shows you the private key and it's not stored on server).
And that's it.
Now is your server prepared for deploying your apps.
Continue to setup your first app deploy.
To check that everything is fine, just visit your server's ip in browser. You should see the status
503 Service Temporarily Unavailable from nginx container. Thats because of no service is deployed and listening on this ip. When you type
docker ps into console. You should see the list of four running containers.
If something is broken, you can go through instalation step by step with guide, just add parameter -g to the installation script.