-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-swarm-merged.yml
More file actions
94 lines (93 loc) · 1.73 KB
/
docker-swarm-merged.yml
File metadata and controls
94 lines (93 loc) · 1.73 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
configs:
tyk_analytics:
file: ./confs/tyk_analytics.conf
tyk_gateway:
file: ./confs/tyk.conf
tyk_pump:
file: ./confs/pump.conf
networks:
tyk: {}
services:
tyk-dashboard:
configs:
- source: tyk_analytics
target: /opt/tyk-dashboard/tyk_analytics.conf
depends_on:
- tyk-mongo
- tyk-redis
deploy:
mode: replicated
replicas: 2
image: tykio/tyk-dashboard:latest
networks:
tyk: null
ports:
- published: 3000
target: 3000
- published: 5000
target: 5000
tyk-gateway:
configs:
- source: tyk_gateway
target: /opt/tyk-gateway/tyk.conf
depends_on:
- tyk-redis
deploy:
mode: replicated
placement:
constraints:
- node.role != manager
replicas: 2
image: tykio/tyk-gateway:latest
networks:
tyk: null
ports:
- published: 8080
target: 8080
tyk-mongo:
command:
- mongod
- --smallfiles
deploy:
placement:
constraints:
- node.role == manager
image: mongo:3.2
networks:
tyk: null
ports:
- published: 27017
target: 27017
volumes:
- mongo-data:/data/db:rw
tyk-pump:
configs:
- source: tyk_pump
target: /opt/tyk-pump/pump.conf
depends_on:
- tyk-gateway
- tyk-mongo
- tyk-redis
deploy:
mode: replicated
replicas: 2
image: tykio/tyk-pump-docker-pub:latest
networks:
tyk: null
tyk-redis:
deploy:
placement:
constraints:
- node.role == manager
image: redis
networks:
tyk: null
ports:
- published: 6379
target: 6379
volumes:
- redis-data:/data:rw
version: '3.3'
volumes:
mongo-data: {}
redis-data: {}