-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-swarm.yml
44 lines (43 loc) · 877 Bytes
/
docker-swarm.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
version: '3.3'
services:
tyk-dashboard:
configs:
- source: tyk_analytics
target: /opt/tyk-dashboard/tyk_analytics.conf
deploy:
mode: replicated
replicas: 2
tyk-gateway:
configs:
- source: tyk_gateway
target: /opt/tyk-gateway/tyk.conf
deploy:
mode: replicated
replicas: 2
placement:
constraints:
- node.role != manager
tyk-pump:
configs:
- source: tyk_pump
target: /opt/tyk-pump/pump.conf
deploy:
mode: replicated
replicas: 2
tyk-redis:
deploy:
placement:
constraints:
- node.role == manager
tyk-mongo:
deploy:
placement:
constraints:
- node.role == manager
configs:
tyk_analytics:
file: ./confs/tyk_analytics.conf
tyk_gateway:
file: ./confs/tyk.conf
tyk_pump:
file: ./confs/pump.conf