-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
71 lines (70 loc) · 1.57 KB
/
docker-compose.dev.yml
File metadata and controls
71 lines (70 loc) · 1.57 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
version: "3.9"
services:
web:
build: .
environment:
- DJANGO_SETTINGS_MODULE=transcriber.settings
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
expose:
- "9000"
command: bash -c "python manage.py collectstatic --noinput && python manage.py migrate && gunicorn transcriber.wsgi --bind 0.0.0.0:9000 --workers 3 --threads 3 --reload"
volumes:
- .:/app
- static_volume:/app/staticfiles
depends_on:
- db
nginx:
build: ./nginx
volumes:
- static_volume:/app/staticfiles
ports:
- "80:80"
depends_on:
- web
- db
db:
image: postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file: .env
redis:
image: redis:alpine
restart: always
expose:
- "6379"
ports:
- "6379:6379"
celery:
build:
context: .
dockerfile: ./Dockerfile
restart: always
environment:
- DJANGO_SETTINGS_MODULE=transcriber.settings
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
volumes:
- .:/app
- static_volume:/app/staticfiles
depends_on:
- web
- redis
links:
- redis:redis
command: ["celery", "-A", "transcriber", "worker", "-l", "info", "-E"]
flower:
image: mher/flower
environment:
- CELERY_BROKER_URL=redis://redis:6379/2
volumes:
- .:/app
depends_on:
- redis
- celery
ports:
- 5555:5555
volumes:
static_volume:
postgres_data: