Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
124 lines (122 loc) · 3.63 KB
/
Copy pathdocker-compose.yml
File metadata and controls
124 lines (122 loc) · 3.63 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
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
name: daco-services
services:
daco-postgres:
container_name: daco.api.db
image: postgres:15-alpine
ports:
- 5432:5432
volumes:
- daco-api-db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: mypassword
daco-valkey:
container_name: daco.valkey
image: valkey/valkey:8-alpine
command: valkey-server --requirepass valkeypass
ports:
- '6379:6379'
volumes:
- 'valkey:/bitnami/valkey/data'
daco-mailhog:
container_name: daco.mailhog
# Using this image over mailhog/mailhog due to incompatibility with apple silicon chips
# This is the same image used in OHCRN
image: docker.io/jcalonso/mailhog:latest
ports:
- '1025:1025'
- '8025:8025'
clinical-submission:
image: ghcr.io/pan-canadian-genome-library/clinical-submission:edge
container_name: clinical.submission
depends_on:
- clinical-postgres # ensure that the database is ready before starting the service
- dictionary-manager-mongo
- dictionary-manager
ports:
- '3030:3030'
env_file: # Contains environment variables that should not be exposed
- ./apps/api/.env.docker
environment:
AUTH_ENABLED: true # Docker runs clinical in NODE_ENV=production, so this must be enabled
AUTH_PROTECT_METHODS: GET,POST,PUT,DELETE
PORT: 3000
API_HOST: http://localhost:3030
SESSION_KEYS: newsecret,oldsecret
ALLOWED_ORIGINS: http://localhost:3030,http://localhost:3000,http://host.docker.internal:3000,http://host.docker.internal:3030
AUDIT_ENABLED: true
LECTERN_URL: http://host.docker.internal:3000
LOG_LEVEL: info
CORS_ALLOWED_ORIGINS: '*'
DB_HOST: host.docker.internal
DB_NAME: submission
DB_PASSWORD: secret
DB_PORT: 5433
DB_USER: postgres
DB_CLINICAL_PREFIX: pcgl
ID_CUSTOM_ALPHABET: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ID_CUSTOM_SIZE: 21
ID_USELOCAL: true
ID_MANAGER_CONFIG: '[]'
ID_MANAGER_SECRET: super-secret
SERVER_PORT: 3030
SERVER_UPLOAD_LIMIT: 4000
PLURALIZE_SCHEMAS_ENABLED:
VALIDATOR_CONFIG: '[]'
UI_HOST: http://submission-ui:3031
VALKEY_HOST: daco-valkey
VALKEY_PORT: 6379
VALKEY_USER: default
VALKEY_PASSWORD: valkeypass
volumes:
- 'clinical-submission:/clinical-submission/data'
clinical-postgres:
container_name: clinical.api.db
image: postgres:15-alpine
ports:
- 5433:5432
volumes:
- submission_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=secret
- POSTGRES_USER=postgres
- POSTGRES_DB=submission
dictionary-manager-mongo:
container_name: dictionary-manager.api.db
image: bitnami/mongodb:latest
ports:
- 27017:27017
volumes:
- mongodb_data:/bitnami
environment:
MONGODB_USERNAME: admin
MONGODB_PASSWORD: password
MONGODB_DATABASE: dictionary-manager
MONGODB_ROOT_PASSWORD: password123
dictionary-manager:
container_name: dictionary-manager
image: ghcr.io/pan-canadian-genome-library/dictionary-manager:edge
ports:
- 3001:3001
environment:
PORT: 3001
MONGO_HOST: dictionary-manager-mongo
MONGO_PORT: 27017
MONGO_DB: dictionary-manager
MONGO_USER: admin
MONGO_PASS: password
volumes:
daco-api-db:
name: daco-api-db
driver: local
valkey:
name: daco-api-valkey
driver: local
clinical-submission:
name: clinical-submission
driver: local
submission_data:
name: submission-postgres-data
driver: local
mongodb_data:
name: dictionary-manager-mongo-data
driver: local