-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
274 lines (263 loc) · 8.08 KB
/
docker-compose.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
version: '3.3'
# Valeurs des variables par défaut dans .env
services:
db:
container_name: remocra-db
image: mdillon/postgis:11-alpine
#user: "${REMOCRA_UID:-1000}:${REMOCRA_GID:-1000}"
ports:
- "5432:5432"
volumes:
- .docker/db/postgresql_data:/var/lib/postgresql/data
- .docker/remocra/logs:/usr/local/tomcat/logs
environment:
POSTGRES_USER: ${POSTGRES_DB_USERNAME}
POSTGRES_PASSWORD: ${POSTGRES_DB_PASSWORD}
POSTGRES_DB: remocra
TZ: "Europe/Paris"
POSTGRES_INITDB_ARGS: --encoding=UTF8 --locale=fr_FR --lc-collate=fr_FR.utf8 --lc-ctype=fr_FR.utf8
healthcheck:
test: "exit 0"
networks:
remocra:
aliases:
- ${POSTGRES_DB_HOSTNAME}
geoserver:
container_name: remocra-geoserver
build: ./geoserver
image: remocra-geoserver
user: "${REMOCRA_UID:-1000}:${REMOCRA_GID:-1000}"
ports:
- "8090:8090"
volumes:
- .docker/var_remocra/geoserver_data:/var/remocra/geoserver_data
environment:
GEOSERVER_PORT: ${GEOSERVER_PORT}
GEOSERVER_DATA_DIR: ${GEOSERVER_DATA_DIR}
GEOWEBCACHE_CACHE_DIR: ${GEOWEBCACHE_CACHE_DIR}
GEOSERVER_INITIAL_MEMORY: ${GEOSERVER_INITIAL_MEMORY}
GEOSERVER_MAXIMUM_MEMORY: ${GEOSERVER_MAXIMUM_MEMORY}
# Accès à la base de données remocra
POSTGRES_DB_HOSTNAME: ${POSTGRES_DB_HOSTNAME}
POSTGRES_DB_USERNAME: ${POSTGRES_DB_USERNAME}
POSTGRES_DB_PASSWORD: ${POSTGRES_DB_PASSWORD}
# Credentials GeoServer
GEOSERVER_ADMIN_USER: ${GEOSERVER_ADMIN_USERNAME}
GEOSERVER_ADMIN_PASSWORD: ${GEOSERVER_ADMIN_PASSWORD}
# Paramètres supplémentaires JVM
#JAVA_OPTS:
depends_on:
- db
healthcheck:
test: curl --fail -s http://localhost:8090/geoserver/web/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
remocra:
aliases:
- geoserver.sdisxx.fr
remocra:
container_name: remocra
build: ./remocra
image: remocra
user: "${REMOCRA_UID:-1000}:${REMOCRA_GID:-1000}"
ports:
- "8080:8080"
volumes:
- .docker/var_remocra:/var/remocra
environment:
LANG: "fr_FR.UTF-8"
REMOCRA_PORT: ${REMOCRA_PORT}
REMOCRA_INITIAL_MEMORY: ${REMOCRA_INITIAL_MEMORY}
REMOCRA_MAXIMUM_MEMORY: ${REMOCRA_MAXIMUM_MEMORY}
REMOCRA_LOGFILE: ${REMOCRA_LOGFILE}
# Accès à la base de données remocra
POSTGRES_DB_HOSTNAME: ${POSTGRES_DB_HOSTNAME}
POSTGRES_DB_USERNAME: ${POSTGRES_DB_USERNAME}
POSTGRES_DB_PASSWORD: ${POSTGRES_DB_PASSWORD}
REMOCRA_SESSION_MIN: ${REMOCRA_SESSION_MIN}
# Paramètres supplémentaires JVM
#JAVA_OPTS:
depends_on:
- db
healthcheck:
test: curl --fail -s http://localhost:8080/remocra/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
remocra:
aliases:
- remocra.sdisxx.fr
api:
container_name: remocra-api
image: remocra-api
user: "${REMOCRA_UID:-1000}:${REMOCRA_GID:-1000}"
build:
context: ../api-remocra/
dockerfile: ./dist/Dockerfile
volumes:
- ../api-remocra/dist/example/log:/app/log
- ../api-remocra/dist/example/config:/app/config:ro
environment:
POSTGRES_DB_SERVERNAME: ${POSTGRES_DB_SERVERNAME:-localhost}
POSTGRES_DB_USERNAME: ${POSTGRES_DB_USERNAME}
POSTGRES_DB_PASSWORD: ${POSTGRES_DB_PASSWORD}
POSTGRES_DB_PORT: ${POSTGRES_DB_PORT}
POSTGRES_DB_NAME: ${POSTGRES_DB_NAME}
API_REMOCRA_HTTP_PORT: ${API_REMOCRA_HTTP_PORT}
ports:
- "8881:8881"
depends_on:
- db
healthcheck:
test: curl --fail -s http://localhost:8881/openapi/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
remocra:
aliases:
- api.sdisxx.fr
jobs-4.4:
container_name: remocra-pdi-4.4-dkron
build: ./pdi-4.4-dkron
image: remocra-pdi-4.4-dkron
user: "${REMOCRA_UID:-1000}:${REMOCRA_GID:-1000}"
ports:
- "8060:8060"
volumes:
- .docker/var_remocra:/var/remocra
- .docker/jobs-common/kettle.properties:/home/pdi/.kettle/kettle.properties
- .docker/jobs-common/remocra.properties:/home/pdi/remocra.properties
- .docker/jobs-4.4/.kettle/repositories.xml:/home/pdi/.kettle/repositories.xml
- .docker/jobs-4.4/dkron_data:/dkron/dkron.data
environment:
# Accès à la base de données remocra
POSTGRES_DB_HOSTNAME: ${POSTGRES_DB_HOSTNAME}
POSTGRES_DB_USERNAME: ${POSTGRES_DB_USERNAME}
POSTGRES_DB_PASSWORD: ${POSTGRES_DB_PASSWORD}
# PDI
PDI_INITIAL_MEMORY: ${PDI_44_INITIAL_MEMORY}
PDI_MAXIMUM_MEMORY: ${PDI_44_MAXIMUM_MEMORY}
PDI_MAXIMUM_PERMSIZE: ${PDI_44_MAXIMUM_PERMSIZE}
# Agent dkron
DKRON_JOIN: ${DKRON_44_JOIN}
DKRON_NODE_NAME: ${DKRON_44_NODE_NAME}
DKRON_TAG: ${DKRON_44_TAG}
DKRON_RPC_PORT: ${DKRON_44_RPC_PORT}
DKRON_BIND_ADDR: ${DKRON_44_BIND_ADDR}
DKRON_HTTP_ADDR: ${DKRON_44_HTTP_ADDR}
DKRON_LOGFILE: ${DKRON_44_LOGFILE}
DKRON_LOG_LEVEL: ${DKRON_44_LOG_LEVEL}
depends_on:
- db
healthcheck:
test: curl --fail -s http://localhost:8060/dashboard/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
remocra:
aliases:
- jobs-44.sdisxx.fr
jobs:
container_name: remocra-pdi-dkron
build: ./pdi-dkron
image: remocra-pdi-dkron
user: "${REMOCRA_UID:-1000}:${REMOCRA_GID:-1000}"
ports:
- "8070:8070"
volumes:
- .docker/var_remocra:/var/remocra
- .docker/jobs-common/kettle.properties:/home/pdi/.kettle/kettle.properties
- .docker/jobs-common/remocra.properties:/home/pdi/remocra.properties
- .docker/jobs/dkron_data:/dkron/dkron.data
environment:
# Accès à la base de données remocra
POSTGRES_DB_HOSTNAME: ${POSTGRES_DB_HOSTNAME}
POSTGRES_DB_USERNAME: ${POSTGRES_DB_USERNAME}
POSTGRES_DB_PASSWORD: ${POSTGRES_DB_PASSWORD}
# PDI
PDI_INITIAL_MEMORY: ${PDI_44_INITIAL_MEMORY}
PDI_MAXIMUM_MEMORY: ${PDI_44_MAXIMUM_MEMORY}
PDI_MAXIMUM_PERMSIZE: ${PDI_44_MAXIMUM_PERMSIZE}
# Agent dkron
DKRON_JOIN: ${DKRON_JOIN}
DKRON_NODE_NAME: ${DKRON_NODE_NAME}
DKRON_TAG: ${DKRON_TAG}
DKRON_RPC_PORT: ${DKRON_RPC_PORT}
DKRON_BIND_ADDR: ${DKRON_BIND_ADDR}
DKRON_HTTP_ADDR: ${DKRON_HTTP_ADDR}
DKRON_LOGFILE: ${DKRON_LOGFILE}
DKRON_LOG_LEVEL: ${DKRON_LOG_LEVEL}
depends_on:
- db
- jobs-4.4
healthcheck:
test: curl --fail -s http://localhost:8070/dashboard/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
remocra:
aliases:
- jobs.sdisxx.fr
redash-server:
container_name: remocra-redash
image: client-docker-registry.atolcd.com/atolcd/redash-viz:9.0.5
user: "${REMOCRA_UID:-1000}:${REMOCRA_GID:-1000}"
command: server
depends_on:
- db
- redis
ports:
- "5000:5000"
env_file:
- .env
healthcheck:
test: wget -q --spider http://localhost:5000/remocra/redash || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
remocra:
aliases:
- redash.sdisxx.fr
redash-scheduler:
container_name: remocra-scheduler
image: client-docker-registry.atolcd.com/atolcd/redash-viz:9.0.5
user: "${REMOCRA_UID:-1000}:${REMOCRA_GID:-1000}"
command: scheduler
env_file:
- .env
networks:
remocra:
aliases:
- worker.sdisxx.fr
redash-worker:
container_name: remocra-worker
image: client-docker-registry.atolcd.com/atolcd/redash-viz:9.0.5
user: "${REMOCRA_UID:-1000}:${REMOCRA_GID:-1000}"
command: worker
env_file:
- .env
networks:
remocra:
aliases:
- worker.sdisxx.fr
redis:
container_name: remocra-redis
image: redis:latest
healthcheck:
test: [ "CMD", "redis-cli","ping || exit 1" ]
interval: 5m
timeout: 30s
retries: 3
networks:
remocra:
aliases:
- redis.sdisxx.fr
networks:
remocra: