forked from Singhj2/ctims
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (74 loc) · 1.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
version: "3.8"
services:
frontend:
container_name: ctims-web
build:
context: ./
args:
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
REACT_APP_API_URL: ${REACT_APP_API_URL}
NEXTAUTH_URL: ${NEXTAUTH_URL}
NEXTAUTH_API_URL: ${NEXTAUTH_API_URL}
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- /etc/localtime:/etc/localtime:ro
restart: on-failure
networks:
- my-network
backend:
container_name: ctims-api
build:
context: ./
dockerfile: ./apps/api/Dockerfile
args:
KEYCLOAK_REALM: ${KEYCLOAK_REALM}
KEYCLOAK_URL: ${KEYCLOAK_URL}
KEYCLOAK_CLIENT_ID: ${KEYCLOAK_CLIENT_ID}
KEYCLOAK_CLIENT_SECRET: ${KEYCLOAK_CLIENT_SECRET}
KEYCLOAK_ADMIN_CLIENT_ID: ${KEYCLOAK_ADMIN_CLIENT_ID}
KEYCLOAK_ADMIN_CLIENT_SECRET: ${KEYCLOAK_ADMIN_CLIENT_SECRET}
KEYCLOAK_TOKEN_ENDPOINT: ${KEYCLOAK_TOKEN_ENDPOINT}
KEYCLOAK_CLIENT_UUID: ${KEYCLOAK_CLIENT_UUID}
PRISMA_FIELD_ENCRYPTION_KEY: ${PRISMA_FIELD_ENCRYPTION_KEY}
MM_API_URL: ${MM_API_URL}
CTIMS_ENV: ${CTIMS_ENV}
environment:
DATABASE_URL: mysql://ctims:ctims@database:3306/ctims
ports:
- "3333:3333"
restart: on-failure
networks:
- my-network
database:
container_name: ctims-db
build:
context: ./database
dockerfile: Dockerfile
ports:
- "3306:3306"
restart: on-failure
networks:
- my-network
mm_api:
image: docker-registry.uhn.ca:443/matchminer-api:bc22a60e-e378-40d5-ac5a-659cee525f7e
ports:
- "5000:5000"
restart: on-failure
networks:
- my-network
mm_mongo_db:
container_name: mm_mongo_db
image: mongo:3.6.10
restart: on-failure
ports:
- "27018:27017"
networks:
- my-network
volumes:
- mm-mongo-db:/data/db
volumes:
mm-mongo-db:
networks:
my-network: