-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.dev.yml
60 lines (57 loc) · 1.36 KB
/
docker-compose.dev.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
version: "3"
services:
db:
image: mongo:4.2.1
volumes:
- ${MONGO_VOLUME_MOUNT}:/data/db
ports:
- "27017:27017"
api:
build:
context: ./backend/api
args:
- http_proxy
- https_proxy
- no_proxy
ports:
- "5000:5000" # (host port):(container port)
volumes:
- ./backend/api:/usr/src/app
# - "./.secrets/ldap_ca_crt:/run/secrets/ldap_ca_crt"
environment:
MONGO_URI:
LDAP_URI:
LDAP_SEARCH_BASE:
LDAP_USER_KEY:
LDAP_EMAIL_DOMAIN:
LDAP_ADMIN_KEY:
LDAP_ADMIN_VALUE:
FLASK_APP: "run.py"
FLASK_ENV: "development"
FLASK_DEBUG: 1
command: ["flask", "run", "--host=0.0.0.0"] # overrides the uwsgi server
service:
build:
context: ./backend/service
args:
- http_proxy
- https_proxy
- no_proxy
ports:
- "80:5000" # (host port):(container port)
volumes:
- ./backend/service:/usr/src/app
environment:
MONGO_URI:
FLASK_APP: "service.py"
FLASK_ENV: "development"
FLASK_DEBUG: 1
command: ["flask", "run", "--host=0.0.0.0"] # overrides the uwsgi server
frontend:
image: node:14-alpine
ports:
- "3000:3000"
volumes:
- ./frontend:/usr/src/app
working_dir: /usr/src/app
command: sh -c "yarn install --non-interactive && yarn start"