cloudnet-compose/dockercloud.yml
Borja Burgos 2d3fe7d299 fixing bug in dockercloud.yml
lb was linking to the wrong service (web instead of voting-app)
2016-06-17 20:53:42 -07:00

34 lines
587 B
YAML

db:
image: 'postgres:9.4'
restart: always
redis:
image: 'redis:latest'
restart: always
result-app:
autoredeploy: true
image: 'instavote/result-app:latest'
ports:
- '80:80'
restart: always
lb:
autoredeploy: true
image: 'dockercloud/haproxy:latest'
links:
- voting-app
ports:
- "80:80"
roles:
- global
restart: always
voting-app:
autoredeploy: true
image: 'instavote/voting-app:latest'
restart: always
target_num_containers: 5
worker:
autoredeploy: true
image: 'instavote/worker:latest'
restart: always
target_num_containers: 3