|
|
|
@ -7,13 +7,7 @@ services:
|
|
|
|
|
- "6379"
|
|
|
|
|
networks:
|
|
|
|
|
- frontend
|
|
|
|
|
deploy:
|
|
|
|
|
replicas: 2
|
|
|
|
|
update_config:
|
|
|
|
|
parallelism: 2
|
|
|
|
|
delay: 10s
|
|
|
|
|
restart_policy:
|
|
|
|
|
condition: on-failure
|
|
|
|
|
|
|
|
|
|
db:
|
|
|
|
|
image: docker-server/docker-org/postgres:9.4
|
|
|
|
|
volumes:
|
|
|
|
@ -31,12 +25,7 @@ services:
|
|
|
|
|
- frontend
|
|
|
|
|
depends_on:
|
|
|
|
|
- redis
|
|
|
|
|
deploy:
|
|
|
|
|
replicas: 2
|
|
|
|
|
update_config:
|
|
|
|
|
parallelism: 2
|
|
|
|
|
restart_policy:
|
|
|
|
|
condition: on-failure
|
|
|
|
|
|
|
|
|
|
result:
|
|
|
|
|
image: docker-server/docker-org/result:image-version
|
|
|
|
|
ports:
|
|
|
|
@ -45,30 +34,12 @@ services:
|
|
|
|
|
- backend
|
|
|
|
|
depends_on:
|
|
|
|
|
- db
|
|
|
|
|
deploy:
|
|
|
|
|
replicas: 1
|
|
|
|
|
update_config:
|
|
|
|
|
parallelism: 2
|
|
|
|
|
delay: 10s
|
|
|
|
|
restart_policy:
|
|
|
|
|
condition: on-failure
|
|
|
|
|
|
|
|
|
|
worker:
|
|
|
|
|
image: docker-server/docker-org/worker:image-version
|
|
|
|
|
networks:
|
|
|
|
|
- frontend
|
|
|
|
|
- backend
|
|
|
|
|
deploy:
|
|
|
|
|
mode: replicated
|
|
|
|
|
replicas: 1
|
|
|
|
|
labels: [APP=VOTING]
|
|
|
|
|
restart_policy:
|
|
|
|
|
condition: on-failure
|
|
|
|
|
delay: 10s
|
|
|
|
|
max_attempts: 3
|
|
|
|
|
window: 120s
|
|
|
|
|
placement:
|
|
|
|
|
constraints: [node.role == manager]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|