cloudnet-compose/dockercloud.yml

34 lines
609 B
YAML
Raw Normal View History

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 19:49:05 +02:00
image: 'docker/example-voting-app-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 19:49:05 +02:00
image: 'docker/example-voting-app-vote:latest'
2016-06-16 04:15:15 +02:00
restart: always
target_num_containers: 5
worker:
autoredeploy: true
2016-06-18 19:49:05 +02:00
image: 'docker/example-voting-app-worker:latest'
2016-06-16 04:15:15 +02:00
restart: always
target_num_containers: 3