-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
55 lines (50 loc) · 1.15 KB
/
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
version: '3'
services:
web:
build:
context: ./Central-Server/hilsim-web
dockerfile: ./Dockerfile
ports:
- "3000:3000"
environment:
- WDS_SOCKET_HOST=127.0.0.1
- CHOKIDAR_USEPOLLING=true
- WATCHPACK_POLLING=true
volumes:
- ./Central-Server/hilsim-web/src:/src/hilsim-webapp/src
- /Central-Server/hilsim-web/node_modules/
api:
build:
context: ./Central-Server/API
dockerfile: ./Dockerfile
ports:
- "443:443"
- "5001:5001"
environment:
- PORT=443
- DB_PASSWORD_FILE=/run/secrets/db_password
- DB_NAME=db
volumes:
- ./Central-Server/API:/src/api
secrets:
- db_password
proxy:
build:
context: ./nginx
dockerfile: ./Dockerfile
ports:
- "80:80"
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
secrets:
- db_password
adminer:
image: adminer
restart: always
# Ask someone responsible for the secrets folder
secrets:
db_password:
file: ./secrets/db_password.txt