-
Notifications
You must be signed in to change notification settings - Fork 14
/
development.yml
68 lines (64 loc) · 1.72 KB
/
development.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
version: "3.5"
services:
# don't show logs from those services
pgadmin:
logging:
driver: none
db:
logging:
driver: none
cantaloupe:
logging:
driver: none
metabase:
logging:
driver: none
proxy:
environment:
- NGINX_BIN=nginx-debug
backend:
volumes:
- ./qaboard:/qaboard/qaboard
- ./qaboard:/usr/local/lib/python3.8/site-packages/qaboard
- ./backend:/qaboard/backend
- ./setup.py:/qaboard/setup.py
environment:
- QABOARD_DB_ECHO=true
- UWSGI_STATS=true
- FLASK_APP=backend
- FLASK_ENV=development
- FLASK_DEBUG=1
# Start a flask debug server instead of the full uwsgi
# To use it, comment out, as well as frontent:environment below
working_dir: /qaboard/backend
command: flask run --host 0.0.0.0 --with-threads --port 5152
# in same cases (NFS+squash-root), it can be useful to be a usual sudoer user...
# user: "11611:10"
# command: >
# bash -c "
# echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
# && su user -c 'flask run --host 0.0.0.0 --with-threads --port 5152'
# "
ports:
- "${QABOARD_DEV_BACKEND_PORT:-5152}:5152"
# logging:
# driver: none
frontend:
volumes:
- ./webapp:/webapp
environment:
# Should we comment it out by default?
- HOST=0.0.0.0
- DANGEROUSLY_DISABLE_HOST_CHECK=true
- CHOKIDAR_USEPOLLING=true
# - REACT_EDITOR=code
# Relay API requests to your development server
- REACT_APP_QABOARD_API_HOST=http://backend:5152
- REACT_APP_QABOARD_HOST=http://proxy:5151
command: npm start
user: "11611:10"
ports:
- "${QABOARD_DEV_FRONTEND_PORT:-3000}:3000"
depends_on:
- proxy
- backend