-
Install
docker-engine
: Docker engine instructions -
Install
docker-compose
: Docker compose instructions
Before deploying check your installation:
$ docker run hello-world
$ docker-compose --version
- Just execute autodeploy script and follow up the instructions:
$ ./autodeploy.sh
- After all is done you can simply de-attach <Ctrl+C>. This will stop all containers. Now you can start them in background:
$ docker-compose up -d
- To stop them type:
$ docker-compose stop
This autodeploy script generates:
- Docker compose file
docker-compose.yml
- Nginx configuration based on hostname
By default nginx container is sitting on 172.20.1.2
. You can change this in docker-compose.yml