-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.debug.yml
51 lines (47 loc) · 1.28 KB
/
docker-compose.debug.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
services:
app:
build:
context: .
dockerfile: ./Dockerfile
args:
- DEV=true
command: >
sh -c "pip install debugpy -t /tmp &&
python manage.py wait_for_db &&
python manage.py migrate &&
python manage.py init_superuser &&
python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 manage.py runserver 0.0.0.0:8000"
ports:
- 8000:8000
- 5678:5678
volumes:
- ./app:/app
environment:
- DJANGO_ENV=dev
- DB_HOST=osc-debug-db
- DB_NAME=devdb
- DB_USER=devuser
- DB_PASS=devpass
- DEBUG=1
- DJANGO_ALLOWED_HOSTS=*
- S3_STORAGE_BACKEND=0
- CREATE_SUPERUSER=1
- DJANGO_SUPERUSER_EMAIL=${DJANGO_SUPERUSER_EMAIL:[email protected]}
- DJANGO_SUPERUSER_PASS=${DJANGO_SUPERUSER_PASS:-changeme}
- EMAIL_HOST_USER=${EMAIL_HOST_USER}
- EMAIL_HOST_PASS=${EMAIL_HOST_PASS}
- SYS_CELERY_ENABLED=0
depends_on:
- postgres
postgres:
image: postgres:13-alpine
container_name: osc-debug-db
volumes:
- gef-postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=devdb
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=devpass
volumes:
gef-postgres:
name: osc-debug-db