-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.11 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
web:
build: .
dockerfile: Dockerfile_production
working_dir: /app/user
command: . /app/user/envs.docker.sh && node server.js
expose:
- '3000'
- '5432'
- '6002'
environment:
- NODE_ENV=production
- PORT=3000
- PYTHONPATH=/app/user/python:$PYTHONPATH
ports:
- '80:3000'
worker:
build: .
dockerfile: Dockerfile_production
working_dir: /app/user
command: . /app/user/envs.docker.sh && node qserver.js
expose:
- '3001'
environment:
- PYTHONPATH=/app/user/python:$PYTHONPATH
- PORT=3001
# You can share a data directory in development
# Make sure to adjust your DATA_DIR env
# Make sure to have access to antecedent rainfall thresholds and susceptibility maps
# if you want to run the landslide model
# use -v HOST_VOLUME:CONTAINER_VOLUME command with docker run
#
development:
build: .
dockerfile: Dockerfile_production
working_dir: /app/user
command: bash
expose:
- '3000'
- '5432'
- '6002'
environment:
- NODE_ENV=development
- PORT=7465
- PYTHONPATH=/app/user/python:$PYTHONPATH
ports:
- '7465:7465'
- '7464:7464'