34 lines
561 B
YAML
34 lines
561 B
YAML
db:
|
|
image: 'postgres:9.4'
|
|
restart: always
|
|
redis:
|
|
image: 'redis:latest'
|
|
restart: always
|
|
result:
|
|
autoredeploy: true
|
|
image: 'instavote/result:latest'
|
|
ports:
|
|
- '80:80'
|
|
restart: always
|
|
lb:
|
|
autoredeploy: true
|
|
image: 'dockercloud/haproxy:latest'
|
|
links:
|
|
- vote
|
|
ports:
|
|
- "80:80"
|
|
roles:
|
|
- global
|
|
restart: always
|
|
vote:
|
|
autoredeploy: true
|
|
image: 'instavote/vote:latest'
|
|
restart: always
|
|
target_num_containers: 5
|
|
|
|
worker:
|
|
autoredeploy: true
|
|
image: 'instavote/worker:latest'
|
|
restart: always
|
|
target_num_containers: 3
|