forked from bcgov/PSP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (94 loc) · 2.29 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3.5"
services:
####################### Keycloak #######################
keycloak:
restart: on-failure:1
container_name: psp-keycloak
build:
context: ./auth/keycloak
env_file:
- auth/keycloak/.env
volumes:
- ./auth/keycloak/config/realm-export.json:/tmp/realm-export.json
ports:
- ${KEYCLOAK_PORT:-8080}:8080
networks:
- psp
####################### Database #######################
database:
restart: on-failure:1
container_name: psp-db
build:
context: database/mssql
env_file:
- database/mssql/.env
ports:
- ${DATABASE_PORT:-5433}:1433
volumes:
- api-db-data:/var/opt/data
networks:
- psp
####################### Backend #######################
backend:
restart: on-failure:1
container_name: psp-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
- keycloak
- geoserver
networks:
- psp
####################### Frontend #######################
frontend:
stdin_open: true
tty: true
restart: on-failure:1
container_name: psp-app
build:
context: frontend
volumes:
- ./frontend/src:/usr/app/src
- ./frontend/public:/usr/app/public
- frontend-node-cache:/usr/app/node_modules
ports:
- ${APP_HTTP_PORT:-3000}:3000
depends_on:
- backend
env_file: ./frontend/.env
networks:
- psp
####################### GeoServer #######################
geoserver:
image: kartoza/geoserver:2.19.2
volumes:
- ./geoserver/geoserver_data:/opt/geoserver/data_dir/workspaces
ports:
- 8600:8080
restart: on-failure
env_file: ./geoserver/.env
healthcheck:
test: curl --fail -s http://localhost:8080/ || exit 1
interval: 1m30s
timeout: 10s
retries: 3
networks:
- psp
####################### Networks Definition #######################
networks:
psp:
name: psp-net
driver: bridge
####################### Volumes Definition #######################
volumes:
api-db-data:
name: psp-api-db-data
frontend-node-cache:
name: psp-frontend-node-cache