docker-compose-files/haproxy_web/docker-compose.yml

33 lines
540 B
YAML

# This will start a haproxy and three web services. haproxy will act as a loadbalancer.
# Authors: yeasy.github.com
# Date: 2015-11-15
weba:
build: ./web
expose:
- 80
webb:
build: ./web
expose:
- 80
webc:
build: ./web
expose:
- 80
haproxy:
image: haproxy:1.6
volumes:
- ./haproxy:/haproxy-override
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
links:
- weba
- webb
- webc
ports:
- "80:80"
- "70:70"