-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-stack.yml
93 lines (86 loc) · 2.4 KB
/
docker-stack.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
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
---
# 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
# labels used by constraints:
# - mmapp
# - mmdb
# - riffapi
# - web
# Labeling suggestion w/ 2 nodes in swarm:
# node 1: mmapp web
# node 2: mmdb riffapi web
version: '3.7'
services:
edu-mm:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.mmapp == true]
edu-riffdata:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.riffapi == true]
configs:
- source: riffdata.local-production.yml.1
target: /app/config/local-production.yml
edu-web:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.web == true]
configs:
- source: letsencrypt-riff-acct.ffe85.private_key.json
target: /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ffe85d86a55543ea1d026e0cd44f5050/private_key.json
- source: letsencrypt-riff-test-acct.ceea5.private_key.json
target: /etc/letsencrypt/accounts/acme-staging-v02.api.letsencrypt.org/directory/ceea58b40644ba4347b37bb4736eb377/private_key.json
edu-mpns:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
configs:
- source: riffedu.mattermost-push-proxy.json
target: /mattermost-push-proxy/config/mattermost-push-proxy.json
secrets:
- source: riffedu.apple-push-cert.pem
target: riffedu.apple-push-cert.pem
edu-riffdata-db:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.riffapi == true]
edu-mm-db:
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 10s
placement:
constraints: [node.labels.mmdb == true]
configs:
riffdata.local-production.yml.1:
external: true
riffedu.mattermost-push-proxy.json:
external: true
letsencrypt-riff-acct.ffe85.private_key.json:
external: true
letsencrypt-riff-test-acct.ceea5.private_key.json:
external: true
secrets:
riffedu.apple-push-cert.pem:
external: true