forked from bcgov/digital-journeys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
354 lines (331 loc) · 13.6 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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
# Author: Gurumoorthy Mohan
version: "3.7"
services:
forms-flow-bpm-db:
image: postgres:14
container_name: forms-flow-bpm-db
environment:
POSTGRES_USER: ${CAMUNDA_JDBC_USER:-admin}
POSTGRES_PASSWORD: ${CAMUNDA_JDBC_PASSWORD:-changeme}
POSTGRES_DB: ${CAMUNDA_JDBC_DB_NAME:-formsflow-bpm}
volumes:
- ./postgres/camunda:/var/lib/postgresql/data:cached
ports:
- "5432:5432"
restart: always
networks:
- forms-flow-network
forms-flow-bpm:
container_name: forms-flow-bpm
build:
context: ./forms-flow-bpm/
dockerfile: Dockerfile
restart: always
links:
- forms-flow-bpm-db
ports:
- "8000:8080"
environment:
- WEB_BASE_URL=${WEB_BASE_URL}
- ODS_URL=${ODS_URL}
- ODS_AUTH_TOKEN=${ODS_AUTH_TOKEN}
- CRM_URL=${CRM_URL}
- CRM_AUTH_TOKEN=${CRM_AUTH_TOKEN}
- KEYCLOAK_URL=${KEYCLOAK_URL}
- KEYCLOAK_URL_REALM=${KEYCLOAK_URL_REALM:-forms-flow-ai}
- KEYCLOAK_CLIENTID=${KEYCLOAK_BPM_CLIENT_ID:-forms-flow-bpm}
- KEYCLOAK_CLIENTSECRET=${KEYCLOAK_BPM_CLIENT_SECRET}
- CAMUNDA_JDBC_URL=${CAMUNDA_JDBC_URL:-jdbc:postgresql://forms-flow-bpm-db:5432/formsflow-bpm}
- CAMUNDA_JDBC_USER=${CAMUNDA_JDBC_USER:-admin}
- CAMUNDA_JDBC_PASSWORD=${CAMUNDA_JDBC_PASSWORD:-changeme}
- CAMUNDA_JDBC_DRIVER=${CAMUNDA_JDBC_DRIVER:-org.postgresql.Driver}
# - CAMUNDA_HIKARI_CONN_TIMEOUT=${CAMUNDA_HIKARI_CONN_TIMEOUT}
# - CAMUNDA_HIKARI_IDLE_TIMEOUT=${CAMUNDA_HIKARI_IDLE_TIMEOUT}
# - CAMUNDA_HIKARI_MAX_POOLSIZE=${CAMUNDA_HIKARI_MAX_POOLSIZE}
# - CAMUNDA_HIKARI_VALID_TIMEOUT=${CAMUNDA_HIKARI_VALID_TIMEOUT}
# - CAMUNDA_BPM_HISTORY_LEVEL=${CAMUNDA_BPM_HISTORY_LEVEL}
# - CAMUNDA_AUTHORIZATION_FLAG=${CAMUNDA_AUTHORIZATION_FLAG}
# - CAMUNDA_AUTHORIZATION_REVOKE_CHECK_FLAG=${CAMUNDA_AUTHORIZATION_REVOKE_CHECK_FLAG}
# - CAMUNDA_JOB_CORE_POOL_SIZE=${CAMUNDA_JOB_CORE_POOL_SIZE}
# - CAMUNDA_JOB_LOCK_TIME_MILLIS=${CAMUNDA_JOB_LOCK_TIME_MILLIS}
# - CAMUNDA_JOB_MAXJOBS_PER_ACQUISITION=${CAMUNDA_JOB_MAXJOBS_PER_ACQUISITION}
# - CAMUNDA_JOB_MAX_POOL_SIZE=${CAMUNDA_JOB_MAX_POOL_SIZE}
# - CAMUNDA_JOB_QUEUE_SIZE=${CAMUNDA_JOB_QUEUE_SIZE}
# - CAMUNDA_JOB_WAIT_TIME_MILLIS=${CAMUNDA_JOB_WAIT_TIME_MILLIS}
# - CAMUNDA_JOB_MAX_WAIT=${CAMUNDA_JOB_MAX_WAIT}
# - CAMUNDA_METRICS_FLAG=${CAMUNDA_METRICS_FLAG}
- CAMUNDA_APP_ROOT_LOG_FLAG=${CAMUNDA_APP_ROOT_LOG_FLAG:-error}
- FORMSFLOW_API_URL=${FORMSFLOW_INTERNAL_API_URL}
- FORMIO_URL=${FORMIO_INTERNAL_PROJECT_URL}
- FORMIO_FILE_URL=${FORMIO_FILE_URL}
- FORMIO_ROOT_EMAIL=${FORMIO_ROOT_EMAIL:[email protected]}
- FORMIO_ROOT_PASSWORD=${FORMIO_ROOT_PASSWORD:-changeme}
- APP_SECURITY_ORIGIN=${APP_SECURITY_ORIGIN:-*}
- WEBSOCKET_SECURITY_ORIGIN=${WEBSOCKET_SECURITY_ORIGIN}
- WEBSOCKET_MESSAGE_TYPE=${WEBSOCKET_MESSAGE_TYPE:-TASK_EVENT}
- WEBSOCKET_ENCRYPT_KEY=${WEBSOCKET_ENCRYPT_KEY:-giert989jkwrgb@DR55}
- DATA_BUFFER_SIZE=${DATA_BUFFER_SIZE:-6}
- IDENTITY_PROVIDER_MAX_RESULT_SIZE=${IDENTITY_PROVIDER_MAX_RESULT_SIZE:-250}
- DATA_ANALYSIS_URL=${DATA_ANALYSIS_URL}
- CUSTOM_SUBMISSION_URL=${CUSTOM_SUBMISSION_URL}
- CUSTOM_SUBMISSION_ENABLED=${CUSTOM_SUBMISSION_ENABLED:-false}
- MULTI_TENANCY_ENABLED=${MULTI_TENANCY_ENABLED:-false}
- FORMSFLOW_ADMIN_URL=${FORMSFLOW_ADMIN_URL:-}
- FORMSFLOW_DOC_API_URL=${FORMSFLOW_DOC_API_URL}
- BPM_CLIENT_CONN_TIMEOUT:${BPM_CLIENT_CONN_TIMEOUT:-90000}
networks:
- forms-flow-network
volumes:
- ./forms-flow-bpm:/digital-journeys:rw
- ./.m2:/root/.m2
forms-flow-forms-db:
container_name: forms-flow-forms-db
image: mongo:5.0
restart: always
hostname: forms-flow-forms-db
ports:
- "27018:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: ${FORMIO_DB_USERNAME:-admin}
MONGO_INITDB_ROOT_PASSWORD: ${FORMIO_DB_PASSWORD:-changeme}
MONGO_INITDB_DATABASE: ${FORMIO_DB_NAME:-formio}
volumes:
- ./forms-flow-forms/mongo_entrypoint/001_user.js:/docker-entrypoint-initdb.d/001_user.js:ro
- ./mongodb/data/db/:/data/db/:cached
- ./mongodb/data/log/:/var/log/mongodb/:cached
- ./mongodb/mongod.conf:/etc/mongod.conf:cached
networks:
- forms-flow-network
forms-flow-forms:
container_name: forms-flow-forms
build:
context: ./forms-flow-forms/
dockerfile: Dockerfile
# The app will restart until Mongo is listening
restart: always
links:
- forms-flow-forms-db
ports:
- "3001:3001"
# The application wants to download things to the local directory
volumes:
- ./forms-flow-forms/:/digital-journeys:rw
environment:
DEBUG: formio:*
NODE_CONFIG: '{"mongo":"mongodb://${FORMIO_DB_USERNAME:-admin}:${FORMIO_DB_PASSWORD:-changeme}@forms-flow-forms-db:27017/${FORMIO_DB_NAME:-formio}?authMechanism=SCRAM-SHA-1&authSource=admin"}'
ROOT_EMAIL: ${FORMIO_ROOT_EMAIL:[email protected]}
ROOT_PASSWORD: ${FORMIO_ROOT_PASSWORD:-changeme}
FORMIO_DOMAIN: ${FORMIO_DEFAULT_PROJECT_URL}
FORMIO_JWT_SECRET: ${FORMIO_JWT_SECRET:---- change me now ---}
stdin_open: true # -i
tty: true # -t
networks:
- forms-flow-network
mock-ods:
image: ealen/echo-server:0.5.1
environment:
- PORT=1090
ports:
- 1090:1090
forms-flow-mailhog:
container_name: forms-flow-mailhog
hostname: forms-flow-mailhog
image: mailhog/mailhog
# logging:
# driver: 'none' # disable saving logs
ports:
- "1025:1025"
- "8025:8025"
networks:
- forms-flow-network
forms-flow-web:
container_name: forms-flow-web
build:
context: ./forms-flow-web/
dockerfile: Dockerfile
environment:
- NODE_ENV=${NODE_ENV:-development}
- REACT_APP_API_SERVER_URL=${FORMIO_DEFAULT_PROJECT_URL}
- REACT_APP_API_PROJECT_URL=${FORMIO_DEFAULT_PROJECT_URL}
- REACT_APP_KEYCLOAK_CLIENT=${KEYCLOAK_WEB_CLIENT_ID:-forms-flow-web}
- REACT_APP_WEB_BASE_URL=${FORMSFLOW_API_URL}
- REACT_APP_BPM_URL=${BPM_API_URL}
- REACT_APP_WEBSOCKET_ENCRYPT_KEY=${WEBSOCKET_ENCRYPT_KEY:-giert989jkwrgb@DR55}
- REACT_APP_KEYCLOAK_URL_REALM=${KEYCLOAK_URL_REALM:-forms-flow-ai}
- REACT_APP_KEYCLOAK_URL=${KEYCLOAK_URL}
- REACT_APP_APPLICATION_NAME=${APPLICATION_NAME:-Digital Journeys}
- REACT_APP_WEB_BASE_CUSTOM_URL=${WEB_BASE_CUSTOM_URL:-}
- REACT_APP_MULTI_TENANCY_ENABLED=${MULTI_TENANCY_ENABLED:-false}
- REACT_APP_MT_ADMIN_BASE_URL=${MT_ADMIN_BASE_URL}
- REACT_APP_MT_ADMIN_BASE_URL_VERSION=${MT_ADMIN_BASE_URL_VERSION}
- REACT_APP_CUSTOM_SUBMISSION_URL=${CUSTOM_SUBMISSION_URL}
- REACT_APP_CUSTOM_SUBMISSION_ENABLED=${CUSTOM_SUBMISSION_ENABLED:-false}
- REACT_APP_DRAFT_ENABLED=${DRAFT_ENABLED:-false}
- REACT_APP_DRAFT_POLLING_RATE=${DRAFT_POLLING_RATE:-15000}
- REACT_APP_EXPORT_PDF_ENABLED=${EXPORT_PDF_ENABLED:-false}
- REACT_APP_DOCUMENT_SERVICE_URL=${DOCUMENT_SERVICE_URL}
- REACT_APP_USER_ACCESS_PERMISSIONS=${USER_ACCESS_PERMISSIONS}
- REACT_APP_CLIENT_ROLE=${CLIENT_ROLE:-formsflow-client}
- REACT_APP_STAFF_REVIEWER_ROLE=${REVIEWER_ROLE:-formsflow-reviewer}
- REACT_APP_STAFF_DESIGNER_ROLE=${DESIGNER_ROLE:-formsflow-designer}
- REACT_APP_CLIENT_ID=${CLIENT_ROLE_ID}
- REACT_APP_STAFF_REVIEWER_ID=${REVIEWER_ROLE_ID}
- REACT_APP_STAFF_DESIGNER_ID=${DESIGNER_ROLE_ID}
- REACT_APP_USER_RESOURCE_FORM_ID=${USER_RESOURCE_ID}
- REACT_APP_ANONYMOUS_ID=${ANONYMOUS_ID}
- REACT_APP_CAMUNDA_API_URI=${CAMUNDA_PUBLIC_API_URL}
- REACT_APP_FORMIO_JWT_SECRET=${FORMIO_JWT_SECRET:---- change me now ---}
- REACT_APP_FORMIO_FILE_URL=${FORMIO_FILE_URL_ATTACHMENTS}
- REACT_APP_SL_REVIEW_PROCESS_KEY=${SL_REVIEW_PROCESS_KEY}
- REACT_APP_INFLUENZA_WORKSITE_PROCESS_KEY=${INFLUENZA_WORKSITE_PROCESS_KEY}
volumes:
- ".:/forms-flow"
- "/forms-flow/node_modules"
ports:
- "3000:3000"
networks:
- forms-flow-network
forms-flow-webapi-db:
container_name: forms-flow-webapi-db
image: postgres:11
environment:
POSTGRES_USER: ${FORMSFLOW_API_DB_USER:-postgres}
POSTGRES_PASSWORD: ${FORMSFLOW_API_DB_PASSWORD:-changeme}
POSTGRES_DB: ${FORMSFLOW_API_DB_NAME:-webapi}
ports:
- "6432:5432"
restart: always
volumes:
- ./postgres/webapi:/var/lib/postgresql/data:cached
networks:
- forms-flow-network
forms-flow-file-upload:
container_name: forms-flow-file-upload
# image: formio/formio-upload
entrypoint:
- node
- ./node_modules/nodemon/bin/nodemon.js
- index
environment:
PORT: 4100
MAX_UPLOAD_SIZE: 16mb
PROVIDERS: file
UPLOAD_DIR: /uploads
FORMIO_URL: ${FORMIO_DEFAULT_PROJECT_URL}
DEBUG: '*,-puppeteer:*'
ports:
- 4100:4100
restart: always
networks:
- forms-flow-network
volumes:
- ./.file-uploads/upload:/uploads
- ./.file-uploads/tmp:/tmp
- ./formio-upload:/src
- /src/node_modules
build:
context: ./formio-upload/
dockerfile: Dockerfile
forms-flow-webapi:
container_name: forms-flow-webapi
build:
context: ./forms-flow-api/
dockerfile: Dockerfile
restart: always
links:
- forms-flow-webapi-db
ports:
- "5001:5000"
volumes:
- ./forms-flow-api:/digital-journeys:cached,rw
environment:
INSIGHT_API_KEY: ${INSIGHT_API_KEY}
INSIGHT_API_URL: ${INSIGHT_API_URL}
DATABASE_URL: ${FORMSFLOW_API_DB_URL:-postgresql://postgres:changeme@forms-flow-webapi-db:5432/webapi}
BPM_TOKEN_API: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_URL_REALM:-forms-flow-ai}/protocol/openid-connect/token
BPM_CLIENT_ID: ${KEYCLOAK_BPM_CLIENT_ID:-forms-flow-bpm}
BPM_CLIENT_SECRET: ${KEYCLOAK_BPM_CLIENT_SECRET}
BPM_API_BASE: ${CAMUNDA_API_URL}
BPM_API_URL: ${BPM_API_URL}
FORMSFLOW_API_CORS_ORIGINS: ${FORMSFLOW_API_CORS_ORIGINS:-*}
JWT_OIDC_WELL_KNOWN_CONFIG: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_URL_REALM:-forms-flow-ai}/.well-known/openid-configuration
JWT_OIDC_ALGORITHMS: "RS256"
JWT_OIDC_JWKS_URI: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_URL_REALM:-forms-flow-ai}/protocol/openid-connect/certs
JWT_OIDC_ISSUER: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_URL_REALM:-forms-flow-ai}
JWT_OIDC_AUDIENCE: ${KEYCLOAK_WEB_CLIENT_ID:-forms-flow-web}
JWT_OIDC_CACHING_ENABLED: "True"
JWT_OIDC_JWKS_CACHE_TIMEOUT: 300
KEYCLOAK_URL: ${KEYCLOAK_URL}
KEYCLOAK_URL_REALM: ${KEYCLOAK_URL_REALM:-forms-flow-ai}
KEYCLOAK_ADMIN_USERNAME: ${KEYCLOAK_ADMIN_USERNAME}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
WEB_API_BASE_URL: ${FORMSFLOW_API_URL}
FORMIO_URL: ${FORMIO_DEFAULT_PROJECT_URL}
FORMIO_ROOT_EMAIL: ${FORMIO_ROOT_EMAIL:[email protected]}
FORMIO_ROOT_PASSWORD: ${FORMIO_ROOT_PASSWORD:-changeme}
FORMIO_JWT_SECRET: ${FORMIO_JWT_SECRET:---- change me now ---}
MULTI_TENANCY_ENABLED: ${MULTI_TENANCY_ENABLED:-false}
KEYCLOAK_ENABLE_CLIENT_AUTH: ${KEYCLOAK_ENABLE_CLIENT_AUTH:-false}
EMPLOYEE_DATA_API_URL: ${EMPLOYEE_DATA_API_URL}
EMPLOYEE_SEARCH_API_URL: ${EMPLOYEE_SEARCH_API_URL}
ODS_AUTH_TOKEN: ${ODS_AUTH_TOKEN}
MINISTRY_NAMES_API_URL: ${MINISTRY_NAMES_API_URL}
SL_REVIEW_ENDPOINT: ${SL_REVIEW_ENDPOINT}
ODS_URL: ${ODS_URL}
SL_REVIEW_PROCESS_KEY: ${SL_REVIEW_PROCESS_KEY}
INFLUENZA_WORKSITE_PROCESS_KEY: ${INFLUENZA_WORKSITE_PROCESS_KEY}
stdin_open: true # -i
tty: true # -t
networks:
- forms-flow-network
docs:
build:
context: ./docs
dockerfile: Dockerfile.docs
container_name: digital-journeys-docs
volumes:
- ./:/docs
ports:
- "8080:8000"
networks:
- forms-flow-network
forms-flow-documents-api:
build:
context: ./forms-flow-documents/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- '5006:5006'
volumes:
- ./forms-flow-documents:/digital-journeys:cached,rw
environment:
DATABASE_URL: ${FORMSFLOW_API_DB_URL:-postgresql://postgres:changeme@forms-flow-webapi-db:5432/webapi}
FORMSFLOW_API_CORS_ORIGINS: ${FORMSFLOW_API_CORS_ORIGINS:-*}
JWT_OIDC_WELL_KNOWN_CONFIG: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_URL_REALM:-forms-flow-ai}/.well-known/openid-configuration
JWT_OIDC_JWKS_URI: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_URL_REALM:-forms-flow-ai}/protocol/openid-connect/certs
JWT_OIDC_ISSUER: ${KEYCLOAK_URL}/auth/realms/${KEYCLOAK_URL_REALM:-forms-flow-ai}
JWT_OIDC_AUDIENCE: ${KEYCLOAK_WEB_CLIENT_ID:-forms-flow-web}
JWT_OIDC_CACHING_ENABLED: 'True'
KEYCLOAK_URL: ${KEYCLOAK_URL}
KEYCLOAK_URL_REALM: ${KEYCLOAK_URL_REALM:-forms-flow-ai}
FORMSFLOW_API_URL: ${FORMSFLOW_API_URL}
FORMSFLOW_DOC_API_URL: ${FORMSFLOW_DOC_API_URL}
FORMIO_URL: ${FORMIO_DEFAULT_PROJECT_URL}
FORMIO_ROOT_EMAIL: ${FORMIO_ROOT_EMAIL:[email protected]}
FORMIO_ROOT_PASSWORD: ${FORMIO_ROOT_PASSWORD:-changeme}
CHROME_DRIVER_PATH: ${CHROME_DRIVER_PATH}
CUSTOM_SUBMISSION_URL: ${CUSTOM_SUBMISSION_URL}
CUSTOM_SUBMISSION_ENABLED: ${CUSTOM_SUBMISSION_ENABLED}
FORMIO_JWT_SECRET: ${FORMIO_JWT_SECRET:---- change me now ---}
MULTI_TENANCY_ENABLED: ${MULTI_TENANCY_ENABLED:-false}
KEYCLOAK_ENABLE_CLIENT_AUTH: ${KEYCLOAK_ENABLE_CLIENT_AUTH:-false}
stdin_open: true # -i
tty: true # -t
networks:
- forms-flow-network
networks:
forms-flow-network:
driver: "bridge"
volumes:
mdb-data:
postgres: