changing docker-stack.yml to more closely match the rest of the app, and add a visualizer
This commit is contained in:
parent
48bdf36336
commit
4743b464a6
@ -6,7 +6,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "6379"
|
- "6379"
|
||||||
networks:
|
networks:
|
||||||
- front-tier
|
- frontend
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
update_config:
|
update_config:
|
||||||
@ -19,7 +19,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- db-data:/var/lib/postgresql/data
|
||||||
networks:
|
networks:
|
||||||
- back-tier
|
- backend
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.role == manager]
|
constraints: [node.role == manager]
|
||||||
@ -28,7 +28,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 5000:80
|
- 5000:80
|
||||||
networks:
|
networks:
|
||||||
- front-tier
|
- frontend
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
deploy:
|
deploy:
|
||||||
@ -42,7 +42,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 5001:80
|
- 5001:80
|
||||||
networks:
|
networks:
|
||||||
- back-tier
|
- backend
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
deploy:
|
deploy:
|
||||||
@ -56,8 +56,8 @@ services:
|
|||||||
worker:
|
worker:
|
||||||
image: dockersamples/examplevotingapp_worker
|
image: dockersamples/examplevotingapp_worker
|
||||||
networks:
|
networks:
|
||||||
- front-tier
|
- frontend
|
||||||
- back-tier
|
- backend
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 1
|
||||||
@ -67,10 +67,17 @@ services:
|
|||||||
delay: 10s
|
delay: 10s
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
window: 120s
|
window: 120s
|
||||||
|
visualizer:
|
||||||
|
image: manomarks/visualizer
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
stop_grace_period: 1m30s
|
||||||
|
volumes:
|
||||||
|
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
front-tier:
|
frontend:
|
||||||
back-tier:
|
backend:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db-data:
|
db-data:
|
Loading…
Reference in New Issue
Block a user