-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (54 loc) · 1.02 KB
/
docker-compose.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
52
53
54
55
version: '3.7'
services:
web:
build: .
command: gunicorn djdict.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/usr/src/app/static:rw
- media_volume:/usr/src/app/media:rw
expose:
- 8000
env_file:
- .env
depends_on:
- db
nginx:
build: ./nginx
volumes:
- static_volume:/home/app/web/static
- media_volume:/home/app/web/media
ports:
- "8000:8080"
depends_on:
- web
db:
image: postgres:13.1-alpine
user: postgres
env_file:
- .env.db
redis:
image: redis:6.0.10-alpine
user: redis
celery:
env_file:
- .env
build: .
command: celery -A djdict worker -l info
volumes:
- media_volume:/usr/src/app/media
depends_on:
- db
- redis
celery-beat:
env_file:
- .env
volumes:
- media_volume:/usr/src/app/media
build: .
command: celery -A djdict beat -l info
depends_on:
- db
- redis
volumes:
static_volume:
media_volume: