-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
82 lines (75 loc) · 1.95 KB
/
docker-stack.yml
File metadata and controls
82 lines (75 loc) · 1.95 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
---
# override/additions to docker-compose.yml for deploying to a docker swarm
# $ docker stack deploy -c docker-compose.yml -c docker-compose.prod.yml -c docker-stack.yml STACK_NAME
# better to use make deploy-stack
#
# The web service specifies a volume bound to the location for the letsencrypt
# certbot webroot to allow auto updating of the ssl certificate.
version: '3.7'
services:
pfm-riffdata:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.mongo == true]
configs:
- source: riffdata.local-production.yml.1
target: /app/config/local-production.yml
pfm-riffrtc:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.web == true]
configs:
- source: riff-rtc.local-production.yml.9.debug
target: /app/config/local-production.yml
pfm-riffdata-db:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.mongo == true]
pfm-redis:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.web == true]
pfm-signalmaster:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
configs:
- source: signalmaster.local-production.yml.2
target: /app/config/local-production.yml
pfm-web:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.web == true]
volumes:
- pfm-web-html-certbot:/usr/share/nginx/html/certbot
volumes:
pfm-web-html-certbot:
configs:
riff-rtc.local-production.yml.9.debug:
external: true
riffdata.local-production.yml.1:
external: true
signalmaster.local-production.yml.2:
external: true