forked from UF-CSU/club-portal-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.debug.yml
More file actions
87 lines (82 loc) · 1.7 KB
/
docker-compose.debug.yml
File metadata and controls
87 lines (82 loc) · 1.7 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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
- static-clubs-dev:/vol/web
env_file:
- .env
depends_on:
- postgres
redis:
image: redis:alpine
ports:
- 6379:6379
celery:
build:
context: .
args:
- DEV=true
restart: unless-stopped
user: django-user
command: ['celery', '-A', 'app', 'worker', '--loglevel=info']
volumes:
- ./app:/app
- static-clubs-dev:/vol/web
depends_on:
- redis
- postgres
- app
env_file:
- .env
celerybeat:
build:
context: .
args:
- DEV=true
user: django-user
restart: unless-stopped
command:
[
'celery',
'-A',
'app',
'beat',
'--loglevel=info',
'--scheduler',
'django_celery_beat.schedulers:DatabaseScheduler'
]
volumes:
- ./app:/app
- static-clubs-dev:/vol/web
depends_on:
- redis
- postgres
- celery
- app
env_file:
- .env
postgres:
image: postgres:13-alpine
volumes:
- postgres-clubs-dev:/var/lib/postgresql/data
environment:
- POSTGRES_DB=devdb
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=devpass
volumes:
postgres-clubs-dev:
static-clubs-dev: