-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-stack.back.yml
52 lines (48 loc) · 1017 Bytes
/
docker-stack.back.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: "3"
services:
graph-koa:
image: monkingxue/graph-koa:fake-redis
depends_on:
- redis
environment:
- PORT=3001
- REDIS_HOST=redis
ports:
- '3001:3001'
networks:
- front-tier
deploy:
replicas: 4
update_config:
parallelism: 2
restart_policy:
condition: on-failure
placement:
constraints: [node.role == worker]
redis:
image: redis:alpine
ports:
- '6379'
networks:
- front-tier
deploy:
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
placement:
constraints: [node.role == manager]
visualizer:
image: dockersamples/visualizer:stable
ports:
- '8080:8080'
stop_grace_period: 1m30s
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
deploy:
placement:
constraints: [node.role == manager]
networks:
front-tier: