-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.debug.yml
More file actions
61 lines (55 loc) · 1.3 KB
/
docker-compose.debug.yml
File metadata and controls
61 lines (55 loc) · 1.3 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
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.4'
services:
django:
build:
context: .
dockerfile: ./server/Dockerfile.debug
args:
SUPERUSER_USERNAME: ${SUPERUSER_USERNAME}
SUPERUSER_PASSWORD: ${SUPERUSER_PASSWORD}
SUPERUSER_EMAIL: ${SUPERUSER_EMAIL}
environment:
- SUPERUSER_USERNAME=${SUPERUSER_USERNAME}
- SUPERUSER_PASSWORD=${SUPERUSER_PASSWORD}
- SUPERUSER_EMAIL=${SUPERUSER_EMAIL}
ports:
- 8000:8000
- 5678:5678
env_file:
- .env
command: ["sh", "-c", "pip install debugpy -t /tmp && python /tmp/debugpy --wait-for-client --listen 0.0.0.0:5678 manage.py runserver 0.0.0.0:8000 --nothreading --noreload"]
depends_on:
- postgres
- redis
volumes:
- static:/static
- ${DATA_VOLUME}:/app/data
postgres:
image: postgres:latest
ports:
- 5432:5432
env_file:
- .env
volumes:
- ${DATA_VOLUME}:/var/lib/postgresql/data
redis:
image: redis:latest
ports:
- 6379:6379
nginx:
build: ./client
ports:
- 80:80
volumes:
- static:/static
depends_on:
- django
volumes:
local_data:
driver: local
smb_data:
driver_opts:
type: cifs
o: "username=${SMB_USERNAME:-},password=${SMB_PASSWORD:-}"
device: "${SMB_ADDRESS:-}"
static: