February 2018
Intermediate to advanced
200 pages
5h 51m
English
version: '2'services: web: build: ports: - "5000" networks: - l1-tier - l2-tier redis: image: "redis:alpine" links: - web networks: - l2-tier lb: image: dockercloud/haproxy ports: - "5001:80" links: - web networks: - l1-tier - l2-tier volumes: - /var/run/docker.sock:/var/run/docker.socknetworks: l1-tier: driver: bridge l2-tier: driver: bridge
$ ansible-playbook -i localhost, docker.yml -t recipe7
- name: Scale up web service of compose application docker_service: project_src: docker_compose ...
Read now
Unlock full access