This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
217 lines (206 loc) · 6.92 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
version: '3'
services:
# ----- glowing-bear -----
glowing-bear:
container_name: ${INSTANCE_ID:?Please configure INSTANCE_ID}-glowing-bear
image: thehyve/glowing-bear:2.0.14
ports:
- ${GLOWING_BEAR_PORT:-9080}:9080
environment:
TRANSMART_API_SERVER_URL: http://transmart-api-server:8081
TRANSMART_PACKER_URL: http://transmart-packer:8999
GB_BACKEND_URL: http://gb-backend:8083
KEYCLOAK_SERVER_URL: ${KEYCLOAK_SERVER_URL:?Please configure KEYCLOAK_SERVER_URL}
KEYCLOAK_REALM: ${KEYCLOAK_REALM:?Please configure KEYCLOAK_REALM}
KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID:?Please configure KEYCLOAK_CLIENT_ID}
DENY_ACCESS_WITHOUT_ROLE: '${DENY_ACCESS_WITHOUT_ROLE:-false}'
NGINX_HOST: localhost
NGINX_PORT: 9080
CHECK_SERVER_STATUS: 'true'
AUTOSAVE_SUBJECT_SETS: '${AUTOSAVE_SUBJECT_SETS:-false}'
depends_on:
- gb-backend
- transmart-api-server
- transmart-packer
networks:
- nginx-proxy-network
restart: unless-stopped
logging:
driver: ${DOCKER_LOGGING_DRIVER:-journald}
options:
labels: application
tag: glowing-bear
# ----- gb-backend + db -----
gb-backend-database:
container_name: ${INSTANCE_ID:?Please configure INSTANCE_ID}-gb-backend-database
image: postgres:11-alpine
environment:
POSTGRES_USER: gb
POSTGRES_PASSWORD: gb
POSTGRES_DB: gb_backend
volumes:
- gb-backend-db-data:/var/lib/postgresql/data
networks:
- gb-backend-db-network
restart: unless-stopped
logging:
driver: ${DOCKER_LOGGING_DRIVER:-journald}
options:
labels: application
tag: gb-backend-database
gb-backend:
container_name: ${INSTANCE_ID:?Please configure INSTANCE_ID}-gb-backend
image: thehyve/glowing-bear-backend:1.0.6
environment:
TRANSMART_API_SERVER_URL: http://transmart-api-server:8081
KEYCLOAK_SERVER_URL: ${KEYCLOAK_SERVER_URL:?Please configure KEYCLOAK_SERVER_URL}
KEYCLOAK_REALM: ${KEYCLOAK_REALM:?Please configure KEYCLOAK_REALM}
KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID:?Please configure KEYCLOAK_CLIENT_ID}
DB_USER: gb
DB_PASSWORD: gb
DB_HOST: gb-backend-database
DB_PORT: 5432
DB_NAME: gb_backend
depends_on:
- gb-backend-database
- transmart-api-server
networks:
- gb-backend-db-network
- nginx-proxy-network
restart: unless-stopped
logging:
driver: ${DOCKER_LOGGING_DRIVER:-journald}
options:
labels: application
tag: gb-backend
volumes:
- ./ssl/extra_certs.pem:/home/gb_backend_usr/extra_certs.pem
# ----- transmart-api-server + db -----
transmart-database:
container_name: ${INSTANCE_ID:?Please configure INSTANCE_ID}-transmart-database
image: thehyve/pg_bitcount:11
ports:
- ${TRANSMART_DATABASE_PORT:-9432}:5432
environment:
POSTGRES_USER: biomart_user
POSTGRES_PASSWORD: biomart_user
POSTGRES_DB: transmart
volumes:
- transmart-db-data:/var/lib/postgresql/data
networks:
- transmart-db-network
restart: unless-stopped
logging:
driver: ${DOCKER_LOGGING_DRIVER:-journald}
options:
labels: application
tag: transmart-database
transmart-api-server:
container_name: ${INSTANCE_ID:?Please configure INSTANCE_ID}-transmart-api-server
image: thehyve/transmart-api-server:17.2.11
environment:
KEYCLOAK_SERVER_URL: ${KEYCLOAK_SERVER_URL:?Please configure KEYCLOAK_SERVER_URL}
KEYCLOAK_REALM: ${KEYCLOAK_REALM:?Please configure KEYCLOAK_REALM}
KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID:?Please configure KEYCLOAK_CLIENT_ID}
DENY_ACCESS_WITHOUT_ROLE: '${DENY_ACCESS_WITHOUT_ROLE:-false}'
PGHOST: transmart-database
PGPORT: 5432
PGDATABASE: transmart
depends_on:
- transmart-database
networks:
- transmart-db-network
- nginx-proxy-network
restart: unless-stopped
logging:
driver: ${DOCKER_LOGGING_DRIVER:-journald}
options:
labels: application
tag: transmart-api-server
volumes:
- ./ssl/extra_certs.pem:/home/transmart/extra_certs.pem
# ----- transmart-packer -----
redis:
container_name: ${INSTANCE_ID:?Please configure INSTANCE_ID}-transmart-packer-redis
image: redis:alpine
command: ["redis-server", "--appendonly", "yes"]
hostname: redis
volumes:
- redis-data:/data
networks:
- packer-redis-network
restart: unless-stopped
logging:
driver: ${DOCKER_LOGGING_DRIVER:-journald}
options:
labels: application
tag: redis
transmart-packer:
container_name: ${INSTANCE_ID:?Please configure INSTANCE_ID}-transmart-packer
image: thehyve/transmart-packer:0.5.0
command: ['transmart-packer']
depends_on:
- redis
- transmart-api-server
links:
- redis
environment:
TRANSMART_URL: http://transmart-api-server:8081
KEYCLOAK_SERVER_URL: ${KEYCLOAK_SERVER_URL:?Please configure KEYCLOAK_SERVER_URL}
KEYCLOAK_REALM: ${KEYCLOAK_REALM:?Please configure KEYCLOAK_REALM}
KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID:?Please configure KEYCLOAK_CLIENT_ID}
KEYCLOAK_OFFLINE_TOKEN: ${KEYCLOAK_OFFLINE_TOKEN:?Please configure KEYCLOAK_OFFLINE_TOKEN}
CLIENT_ORIGIN_URL: '*'
networks:
- nginx-proxy-network
- packer-redis-network
volumes:
- export-data:/app/tmp_data_dir
- ./ssl/extra_certs.pem:/ssl/certs.pem
restart: unless-stopped
logging:
driver: ${DOCKER_LOGGING_DRIVER:-journald}
options:
labels: application
tag: transmart-packer
transmart-packer-worker:
container_name: ${INSTANCE_ID:?Please configure INSTANCE_ID}-transmart-packer-worker
image: thehyve/transmart-packer:0.5.0
command: ['celery', '-A', 'packer.tasks', 'worker', '-c', '4', '--loglevel', 'info']
depends_on:
- redis
- transmart-api-server
links:
- redis
environment:
TRANSMART_URL: http://transmart-api-server:8081
KEYCLOAK_SERVER_URL: ${KEYCLOAK_SERVER_URL:?Please configure KEYCLOAK_SERVER_URL}
KEYCLOAK_REALM: ${KEYCLOAK_REALM:?Please configure KEYCLOAK_REALM}
KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID:?Please configure KEYCLOAK_CLIENT_ID}
KEYCLOAK_OFFLINE_TOKEN: ${KEYCLOAK_OFFLINE_TOKEN:?Please configure KEYCLOAK_OFFLINE_TOKEN}
networks:
- nginx-proxy-network
- packer-redis-network
volumes:
- export-data:/app/tmp_data_dir
- ./ssl/extra_certs.pem:/ssl/certs.pem
restart: unless-stopped
logging:
driver: ${DOCKER_LOGGING_DRIVER:-journald}
options:
labels: application
tag: transmart-packer-worker
volumes:
gb-backend-db-data:
transmart-db-data:
redis-data:
export-data:
networks:
gb-backend-db-network:
driver: bridge
transmart-db-network:
driver: bridge
nginx-proxy-network:
driver: bridge
packer-redis-network:
driver: bridge