-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (40 loc) · 1021 Bytes
/
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
version: '3'
services:
#-------------------------------
# PSI web service
#-------------------------------
psi-web:
stdin_open: true
tty: true
build:
context: ./
dockerfile: Dockerfile-web
environment:
- FLASK_SERVER_BASE=http://psi-flask-service:8000/
- FLASK_SVC_URL=/flask-custom/
- DJANGO_SETTINGS_MODULE=psiproject.settings.local
- PSI_DATA_DIRECTORY_PATH=/psi_volume/data
- RELEASE_OUTPUT_PATH=/psi_volume/output
command: python manage.py runserver 0.0.0.0:8080
volumes:
- .:/psi_volume
ports:
- "8080:8080"
depends_on:
- psi-flask-service
#-------------------------------
# Flask service
#-------------------------------
psi-flask-service:
stdin_open: true
tty: true
build:
context: ./
dockerfile: Dockerfile-r-service
environment:
- IS_PRODUCTION_MODE=no
- PSI_DATA_DIRECTORY_PATH=/psi_volume/data
ports:
- "8000:8000"
volumes:
- .:/psi_volume