-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
126 lines (126 loc) · 3.58 KB
/
docker-compose.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
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
version: "3.9"
services:
react:
image: node:16-slim
user: node
working_dir: /usr/src/app
init: true
command: yarn start
ports:
- ${STORYBOOK_PORT:-6006}:6001
- ${REACT_PORT}:3000
volumes:
- ./react:/usr/src/app
environment:
REACT_APP_GRAPHQL_URL:
REACT_APP_KEYCLOAK_AUTH_URL: ${REACT_APP_KEYCLOAK_FRONT_END_AUTH_URL}
REACT_APP_KEYCLOAK_REALM: ${KEYCLOAK_REALM}
REACT_APP_KEYCLOAK_CLIENT_ID: ${KEYCLOAK_REACT_CLIENT_ID}
REACT_APP_SOURCE_LIST:
server:
build:
context: server
target: dev
image: ghcr.io/ccmbioinfo/osmp:dev
init: true
command: yarn start
ports:
- ${SERVER_PORT}:3000
volumes:
- ./server:/usr/src/app
environment:
G4RD_AUTH_METHOD:
G4RD_CLIENT_ID:
G4RD_GRANT_TYPE:
G4RD_PASSWORD:
G4RD_REALM:
G4RD_TOKEN_URL:
G4RD_URL:
G4RD_USERNAME:
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_REALM:
KEYCLOAK_CLIENT_ID: ${KEYCLOAK_SERVER_CLIENT_ID}
MONGO_CONNECTION_STRING: mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo/${MONGO_INITDB_DATABASE}?authSource=admin
NODE_ENV: development
SERVER_SESSION_SECRET:
TEST_NODE_URL: http://test-node:3000/data
TEST_NODE_OAUTH_ACTIVE:
TEST_NODE_SSMP_TOKEN_CLIENT_ID:
TEST_NODE_SSMP_TOKEN_CLIENT_SECRET:
TEST_NODE_SSMP_TOKEN_ENDPOINT:
TEST_NODE_TOKEN_AUDIENCE:
mongo:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME:
MONGO_INITDB_DATABASE:
MONGO_INITDB_ROOT_PASSWORD:
ports:
- ${MONGO_INITDB_PORT}:27017
volumes:
- ./mongo/data:/data/db
test-node:
image: node:16-slim
user: node
working_dir: /usr/src/app
init: true
command: yarn start
ports:
- ${TEST_NODE_PORT}:3000
volumes:
- ./test-node:/usr/src/app
environment:
TEST_NODE_TOKEN_ISSUER:
TEST_NODE_TOKEN_AUDIENCE:
TEST_NODE_OAUTH_ACTIVE:
TEST_DATA_DB:
TEST_DATA_DB_PORT:
TEST_DATA_DB_HOST:
TEST_DATA_DB_USER:
TEST_DATA_DB_PASSWORD:
stager-mysql:
image: mysql:8.0
restart: on-failure
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}"
ports:
- ${TEST_DATA_DB_PORT}:3306
volumes:
- ${TEST_DATA_DATA_VOLUME}:/var/lib/mysql
keycloak:
image: quay.io/keycloak/keycloak:17.0.0-legacy
environment:
KEYCLOAK_SERVER_CLIENT_ID:
KEYCLOAK_REACT_CLIENT_ID:
KEYCLOAK_CLIENT_ID:
KEYCLOAK_USER:
KEYCLOAK_PASSWORD:
KEYCLOAK_PORT:
KEYCLOAK_REALM:
DB_VENDOR: H2
REACT_URL:
AUTH0_BROKER_AUTH_URL: ${TEST_NODE_TOKEN_ISSUER}authorize
AUTH0_BROKER_TOKEN_URL: ${TEST_NODE_TOKEN_ISSUER}oauth/token
AUTH0_BROKER_MANAGEMENT_API_URL: ${TEST_NODE_TOKEN_ISSUER}api/v2/
AUTH0_BROKER_CLIENT_ID: ${KEYCLOAK_AUTH0_CLIENT_ID}
AUTH0_BROKER_CLIENT_SECRET: ${KEYCLOAK_AUTH0_CLIENT_SECRET}
AUTH0_BROKER_USERNAME: ${G4RD_USERNAME}
AUTH0_BROKER_PASSWORD: ${G4RD_PASSWORD}
AUTH0_GRANT_TYPE: ${G4RD_GRANT_TYPE}
ports:
- ${KEYCLOAK_PORT}:8080
volumes:
- ./keycloak/bin:/usr/local/bin
- ./keycloak/startup-scripts:/opt/jboss/startup-scripts
- ./keycloak/theme:/opt/jboss/keycloak/themes/osmp