- Docker >=
v17.05.0-ce
- Docker Compose >=
v1.14.0
Note: The command examples below are for a Ubuntu 16.04 host.
-
Enable metrics in Docker.
sudo apt-get install -y jq { sudo cat /etc/docker/daemon.json 2>/dev/null || echo '{}'; } | jq '. + {"experimental": true, "metrics-addr": "0.0.0.0:9323"}' | sudo tee /etc/docker/daemon.json.tmp && sudo mv /etc/docker/daemon.json.tmp /etc/docker/daemon.json sudo systemctl restart docker
-
Prepare the
docker-compose.override.yml
file.You may copy from the default template file (
docker-compose.override.yml.dist
), then modify as necessary. -
Pull the images.
docker-compose pull
-
Create and run the services.
-
In a development environment, it is easier to just use Docker Compose.
docker-compose up -d
-
In a production environment, the services should be deployed using Docker Engine's swarm mode.
-
Generate a combined Docker Compose file:
docker-compose config --resolve-image-digests > docker-stack.prod.yml
Then manually apply any changes as necessary.
-
Deploy!
docker stack deploy -c docker-stack.prod.yml tripvissmonitoring
-
-