forked from bcgov/PIMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (77 loc) · 1.78 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
version: "3.5"
services:
####################### Keycloak #######################
keycloak:
restart: on-failure:1
container_name: pims-keycloak
build:
context: ./auth/keycloak
env_file:
- auth/keycloak/.env
volumes:
- ./auth/keycloak/config/realm-export.json:/tmp/realm-export.json
ports:
- 8080:8080
networks:
- pims
####################### Database #######################
database:
restart: on-failure:1
container_name: api-db
build:
context: database/mssql
env_file:
- database/mssql/.env
ports:
- "5433:1433"
volumes:
- api-db-data:/var/opt/mssql
networks:
- pims
####################### Backend #######################
backend:
restart: on-failure:1
container_name: backend-api
build:
context: backend
args:
BUILD_CONFIGURATION: Debug
env_file: backend/api/.env
ports:
- "5001:443"
- "5000:8080"
depends_on:
- database
- keycloak
networks:
- pims
####################### Frontend #######################
frontend:
stdin_open: true
tty: true
restart: on-failure:1
container_name: frontend-app
build:
context: frontend
volumes:
- ./frontend/src:/usr/app/src
- ./frontend/public:/usr/app/public
- frontend-node-cache:/usr/app/node_modules
ports:
- "3000:3000"
depends_on:
- backend
env_file: ./frontend/.env
networks:
- pims
####################### Networks Definition #######################
networks:
pims:
name: pims-net
driver: bridge
####################### Volumes Definition #######################
volumes:
api-db-data:
name: pims-api-db-data
frontend-node-cache:
name: pims-frontend-node-cache