-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
172 lines (168 loc) · 5.04 KB
/
docker-compose-prod.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
---
version: '3.4'
services:
zeo:
image: docker-registry.pfwb.be/pfwb-ged:17
volumes:
- blobstorage:/data/blobstorage
- filestorage:/data/filestorage
- log:/data/log
- type: tmpfs
target: /var/tmp
command: zeoserver
healthcheck:
disable: true
deploy:
replicas: 1
placement:
constraints:
- node.hostname == pfwb-ubuged5
environment:
- HTTP_PORT=8080
- HOSTNAME_HOST=local
- PROJECT_ID=plone
instance:
image: docker-registry.pfwb.be/pfwb-ged:${BUILD_ID}
volumes:
- blobstorage:/data/blobstorage
- documentviewer:/data/documentviewer
- log:/data/log
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
- type: tmpfs
target: /plone/tmp
deploy:
replicas: 15
placement:
constraints:
- node.hostname == pfwb-ubuged5
labels:
- "traefik.enable=true"
- "traefik.http.routers.pfwb-ged-prod-login.rule=Host(`ged.pfwb.be`) && Method(`GET`) && Path (`/`)"
- "traefik.http.routers.pfwb-ged-prod-login.priority=2"
- "traefik.http.routers.pfwb-ged-prod-login.entrypoints=web"
- "traefik.http.routers.pfwb-ged-prod-login.service=pfwb-ged-prod-login"
- "traefik.http.services.pfwb-ged-prod-login.loadbalancer.server.port=8080"
- "traefik.http.routers.pfwb-ged-prod-login.middlewares=add-pfwb-ged-prod-login-vhost"
- "traefik.http.middlewares.add-pfwb-ged-prod-login-vhost.addprefix.prefix=/VirtualHostBase/https/ged.pfwb.be:443/pfwbged/VirtualHostRoot/dashboard"
- "traefik.http.routers.pfwb-ged-prod.rule=Host(`ged.pfwb.be`)"
- "traefik.http.routers.pfwb-ged-prod.priority=1"
- "traefik.http.routers.pfwb-ged-prod.entrypoints=web"
- "traefik.http.routers.pfwb-ged-prod.service=pfwb-ged-prod"
- "traefik.http.services.pfwb-ged-prod.loadbalancer.server.port=8080"
- "traefik.http.routers.pfwb-ged-prod.middlewares=add-pfwb-ged-prod-vhost"
- "traefik.http.middlewares.add-pfwb-ged-prod-vhost.addprefix.prefix=/VirtualHostBase/https/ged.pfwb.be:443/pfwbged/VirtualHostRoot"
ports:
- 8080
networks:
- default
- traefik
environment:
- HTTP_PORT=8080
- ZEO_ADDRESS=zeo:8100
- HOSTNAME_HOST=local
- PROJECT_ID=plone
- ROOT_URL=https://ged.pfwb.be
- zope_i18n_allowed_languages=fr
extra_hosts:
- "dc1.dom.pfwb.be:172.23.3.139"
- "dc2.dom.pfwb.be:172.23.3.159"
- "SRV-WIN-DC02.dom.pfwb.be:10.80.1.148"
- "SRV-WIN-DC04.dom.pfwb.be:10.80.1.125"
instance-debug:
image: docker-registry.pfwb.be/pfwb-ged:${BUILD_ID}
command: sleep infinity
healthcheck:
disable: true
volumes:
- blobstorage:/data/blobstorage
- documentviewer:/data/documentviewer
- log:/data/log
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
- type: tmpfs
target: /plone/tmp
deploy:
replicas: 0
placement:
constraints:
- node.hostname == pfwb-ubuged5
ports:
- 31000:8080
networks:
- default
environment:
- HTTP_PORT=8080
- ZEO_ADDRESS=zeo:8100
- HOSTNAME_HOST=local
- PROJECT_ID=plone
- ROOT_URL=https://ged.pfwb.be
- zope_i18n_allowed_languages=fr
extra_hosts:
- "dc1.dom.pfwb.be:172.23.3.139"
- "dc2.dom.pfwb.be:172.23.3.159"
- "SRV-WIN-DC02.dom.pfwb.be:10.80.1.148"
- "SRV-WIN-DC04.dom.pfwb.be:10.80.1.125"
worker:
image: docker-registry.pfwb.be/pfwb-ged:${BUILD_ID}
volumes:
- blobstorage:/data/blobstorage
- documentviewer:/data/documentviewer
- log:/data/log
- /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt:ro
- type: tmpfs
target: /plone/tmp
command: worker
deploy:
replicas: 1
placement:
constraints:
- node.hostname == pfwb-ubuged5
networks:
- default
environment:
- HTTP_PORT=8080
- ZEO_ADDRESS=zeo:8100
- HOSTNAME_HOST=local
- PROJECT_ID=plone
- ROOT_URL=https://ged.pfwb.be
- zope_i18n_allowed_languages=fr
extra_hosts:
- "dc1.dom.pfwb.be:172.23.3.139"
- "dc2.dom.pfwb.be:172.23.3.159"
- "SRV-WIN-DC02.dom.pfwb.be:10.80.1.148"
- "SRV-WIN-DC04.dom.pfwb.be:10.80.1.125"
redis:
image: redis
deploy:
replicas: 1
placement:
constraints:
- node.hostname == pfwb-ubuged5
networks:
- default
solr:
image: docker-registry.pfwb.be/pfwb-ged:${BUILD_ID}
deploy:
replicas: 1
placement:
constraints:
- node.hostname == pfwb-ubuged5
volumes:
- solr:/data/solr
- blobstorage:/data/blobstorage
- documentviewer:/data/documentviewer
- log:/data/log
command: solr-instance
networks:
- default
healthcheck:
disable: true
networks:
traefik:
external:
name: traefik
volumes:
blobstorage:
filestorage:
documentviewer:
solr:
log: