forked from ccmbioinfo/osmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.staging.yaml
79 lines (73 loc) · 1.95 KB
/
docker-compose.staging.yaml
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
version: "3.9"
x-common: &common
restart: unless-stopped
logging:
driver: journald
services:
server:
build: server
image: ghcr.io/ccmbioinfo/osmp:latest
cpus: 1.0
mem_limit: 5G
restart: always
environment:
G4RD_AUTH_METHOD:
G4RD_PASSWORD:
G4RD_URL:
G4RD_USERNAME:
G4RD_REALM:
G4RD_GRANT_TYPE:
G4RD_TOKEN_URL:
G4RD_CLIENT_ID:
KEYCLOAK_AUTH_URL:
KEYCLOAK_CLIENT_ID:
KEYCLOAK_REALM:
MONGO_CONNECTION_STRING: mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo/${MONGO_INITDB_DATABASE}?authSource=admin
TEST_NODE_URL: http://test-node:3000/data
ports:
- 3000:3000
<<: *common
test-node:
build: test-node
image: ghcr.io/ccmbioinfo/osmp-test-node
environment:
TEST_DATA_DB:
TEST_DATA_DB_PORT: 3306
TEST_DATA_DB_HOST: test-node-mysql
TEST_DATA_DB_USER:
TEST_DATA_DB_PASSWORD:
<<: *common
test-node-mysql:
image: mysql:8.0
environment:
MYSQL_DATABASE: "${TEST_DATA_DB}"
MYSQL_USER: "${TEST_DATA_DB_USER}"
MYSQL_PASSWORD: "${TEST_DATA_DB_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${TEST_DATA_DB_ROOT_PASSWORD}"
volumes:
- ${PROJECT_ROOT:-.}/test_node_db_data:/var/lib/mysql
<<: *common
keycloak:
image: quay.io/keycloak/keycloak:17.0.0-legacy
environment:
KEYCLOAK_USER:
KEYCLOAK_PASSWORD:
DB_VENDOR: mysql
DB_ADDR: "${KEYCLOAK_DB_ADDR}"
DB_DATABASE: "${KEYCLOAK_DB}"
DB_USER: "${KEYCLOAK_DB_USER}"
DB_PASSWORD: "${KEYCLOAK_DB_PASSWORD}"
PROXY_ADDRESS_FORWARDING: "true"
KEYCLOAK_FRONTEND_URL: "https://keycloak.ccmdev.ca/auth"
ports:
- 8080:8080
<<: *common
mongo:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME:
MONGO_INITDB_DATABASE:
MONGO_INITDB_ROOT_PASSWORD:
volumes:
- ${PROJECT_ROOT:-.}/mongo_data:/data/db
<<: *common