-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.staging.yaml
85 lines (80 loc) · 2.17 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
80
81
82
83
84
85
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:
CMH_AZURE_CLIENT_ID:
CMH_AZURE_CLIENT_SECRET:
CMH_TOKEN_URL:
CMH_RESOURCE:
CMH_SCOPE:
CMH_GRANT_TYPE:
CMH_GENE42_SECRET:
CMH_URL:
KEYCLOAK_AUTH_URL:
KEYCLOAK_CLIENT_ID:
KEYCLOAK_REALM:
MONGO_CONNECTION_STRING:
SERVER_SESSION_SECRET:
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:
KEYCLOAK_REALM:
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"
AUTH0_BROKER_TOKEN_URL: ${G4RD_TOKEN_URL}
AUTH0_BROKER_MANAGEMENT_API_URL: ${G4RD_AUTH0_BASE_URL}api/v2/
AUTH0_BROKER_CLIENT_ID: ${G4RD_CLIENT_ID} # use same creds as osmp server backend
AUTH0_BROKER_USERNAME: ${G4RD_USERNAME}
AUTH0_BROKER_PASSWORD: ${G4RD_PASSWORD}
AUTH0_GRANT_TYPE: ${G4RD_GRANT_TYPE}
ports:
- 8080:8080
<<: *common