August 2017
Intermediate to advanced
332 pages
9h 16m
English
We already defined the docker-compose.yml file in the previous chapters and it looked similar to the following one:
version: "3"services: calculator: deploy: replicas: 3 image: leszko/calculator:latest ports: - "8881:8080" redis: deploy: replicas: 1 image: redis:latest
With the presented docker-compose.yml configuration, we will run three calculator containers and one redis container. The endpoint of the calculator service will be exposed on port 8881.
Read now
Unlock full access