-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.debug.yaml
More file actions
26 lines (25 loc) · 1.08 KB
/
compose.debug.yaml
File metadata and controls
26 lines (25 loc) · 1.08 KB
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
services:
sqlution-dev:
image: sqlution
container_name: sqlution-dev
build:
context: .
dockerfile: ./Dockerfile
environment:
WAIT_FOR_DEBUGGER: "${WAIT_FOR_DEBUGGER:-0}"
SECRET_KEY: "${SECRET_KEY:-dev-secret-key-change-me}"
SQLUTION_DB_DIR: /data
DJANGO_ALLOWED_HOSTS: "localhost,127.0.0.1"
# Upload limits (in bytes)
FILE_UPLOAD_MAX_MEMORY_SIZE: "${FILE_UPLOAD_MAX_MEMORY_SIZE:-104857600}"
DATA_UPLOAD_MAX_MEMORY_SIZE: "${DATA_UPLOAD_MAX_MEMORY_SIZE:-104857600}"
NGINX_CLIENT_MAX_BODY_SIZE: "${NGINX_CLIENT_MAX_BODY_SIZE:-100M}"
command: ["sh", "-c", "pip install debugpy -t /tmp && if [ \"$WAIT_FOR_DEBUGGER\" = \"1\" ]; then python -m debugpy --wait-for-client --listen 0.0.0.0:5678 manage.py runserver 0.0.0.0:8000 --nothreading --noreload; else python manage.py runserver 0.0.0.0:8000 --nothreading --noreload; fi"]
ports:
- 8000:8000
- 5678:5678
volumes:
- sqlution-db:/data
- ${USER_DATABASES_PATH:-./tutorial/user_databases}:/app/tutorial/user_databases
volumes:
sqlution-db: