2016-06-16 04:15:15 +02:00
|
|
|
db:
|
|
|
|
image: 'postgres:9.4'
|
|
|
|
restart: always
|
|
|
|
redis:
|
|
|
|
image: 'redis:latest'
|
|
|
|
restart: always
|
2016-06-18 18:14:28 +02:00
|
|
|
result:
|
2016-06-16 04:15:15 +02:00
|
|
|
autoredeploy: true
|
2016-06-18 18:14:28 +02:00
|
|
|
image: 'instavote/result:latest'
|
2016-06-16 04:15:15 +02:00
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
restart: always
|
|
|
|
lb:
|
|
|
|
autoredeploy: true
|
|
|
|
image: 'dockercloud/haproxy:latest'
|
|
|
|
links:
|
2016-06-18 18:14:28 +02:00
|
|
|
- vote
|
2016-06-16 04:15:15 +02:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
roles:
|
|
|
|
- global
|
|
|
|
restart: always
|
2016-06-18 18:14:28 +02:00
|
|
|
vote:
|
2016-06-16 04:15:15 +02:00
|
|
|
autoredeploy: true
|
2016-06-18 18:14:28 +02:00
|
|
|
image: 'instavote/vote:latest'
|
2016-06-16 04:15:15 +02:00
|
|
|
restart: always
|
|
|
|
target_num_containers: 5
|
|
|
|
|
|
|
|
worker:
|
|
|
|
autoredeploy: true
|
|
|
|
image: 'instavote/worker:latest'
|
|
|
|
restart: always
|
|
|
|
target_num_containers: 3
|