-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
76 lines (70 loc) · 1.47 KB
/
docker-compose.yaml
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
version: '3.11'
services:
web:
build: .
command: >
sh -c "python manage.py collectstatic --no-input &&
python manage.py migrate &&
gunicorn core.wsgi:application --bind 0.0.0.0:8000"
volumes:
- ./src:/usr/src # Project source code
- static_volume:/usr/src/static # Static files
- media_volume:/usr/src/media # Media files
expose:
- 8000
env_file:
- ./src/core/.env
depends_on:
- redis
nginx:
build: ./nginx
volumes:
- static_volume:/usr/src/static
- media_volume:/usr/src/media
ports:
- "80:80"
depends_on:
- web
# caddy:
# build: ./caddy
# volumes:
# - static_volume:/usr/src/static
# - media_volume:/usr/src/media
# ports:
# - "80:80"
# - "443:443"
# depends_on:
# - web
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
- redis_data:/data
command:
- redis-server
celery_worker:
build: .
command: celery -A core worker -l INFO
volumes:
- ./src:/usr/src # Project source code
env_file:
- ./src/core/.env
depends_on:
- redis
flower:
build: .
command: celery -A core flower --port=5555
ports:
- "5555:5555"
volumes:
- ./src:/usr/src # Project source code
env_file:
- ./src/core/.env
depends_on:
- redis
- celery_worker
volumes:
redis_data:
static_volume:
media_volume: