forked from bcgov/PIMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (67 loc) · 1.56 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
services:
####################### Database #######################
database:
restart: 'no'
container_name: pims-database
build:
context: database/mssql
env_file:
- database/mssql/.env
ports:
- ${DATABASE_PORT:-5433}:1433
volumes:
- database-data:/var/opt/mssql/data
networks:
- pims
####################### Backend #######################
backend:
restart: 'no'
container_name: pims-api
build:
context: backend
args:
BUILD_CONFIGURATION: Debug
env_file: backend/api/.env
ports:
- ${API_HTTPS_PORT:-5001}:443
- ${API_HTTP_PORT:-5000}:8080
depends_on:
- database
networks:
- pims
####################### Frontend #######################
frontend:
stdin_open: true
tty: true
restart: 'no'
container_name: pims-app
build:
context: frontend
target: dev
dockerfile: Dockerfile
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
- pims-app-node-cache:/app/node_modules
ports:
- ${APP_HTTP_PORT:-3000}:3000
depends_on:
- backend
env_file: ./frontend/.env
networks:
- pims
####################### Networks Definition #######################
networks:
pims:
name: pims-net
driver: bridge
####################### Volumes Definition #######################
volumes:
database-data:
driver: local
driver_opts:
type: none
device: $PWD/database/mssql/data
o: bind
pims-app-node-cache:
name: pims-app-node-cache