remove deploy node

master
jackyzhou 6 years ago
parent 7b148613a7
commit e760fcc756

@ -7,13 +7,7 @@ services:
- "6379" - "6379"
networks: networks:
- frontend - frontend
deploy:
replicas: 2
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
db: db:
image: docker-server/docker-org/postgres:9.4 image: docker-server/docker-org/postgres:9.4
volumes: volumes:
@ -31,12 +25,7 @@ services:
- frontend - frontend
depends_on: depends_on:
- redis - redis
deploy:
replicas: 2
update_config:
parallelism: 2
restart_policy:
condition: on-failure
result: result:
image: docker-server/docker-org/result:image-version image: docker-server/docker-org/result:image-version
ports: ports:
@ -45,30 +34,12 @@ services:
- backend - backend
depends_on: depends_on:
- db - db
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
worker: worker:
image: docker-server/docker-org/worker:image-version image: docker-server/docker-org/worker:image-version
networks: networks:
- frontend - frontend
- backend - 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: networks:

Loading…
Cancel
Save