-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (51 loc) · 1018 Bytes
/
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
version: '3.8'
services:
django:
build: .
command: gunicorn core.wsgi:application -w 2 -b :8000 --timeout 120
volumes:
- ./src:/app
ports:
- "8000:8000"
depends_on:
- postgres
- redis
- celery
env_file:
- ./src/core/.env
postgres:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- ./src/core/.env
environment:
- POSTGRES_USER=hello_django
- POSTGRES_PASSWORD=hello_django
- POSTGRES_DB=hello_django
redis:
image: redis:6
ports:
- "6379:6379"
celery:
build: .
command: celery -A core worker --loglevel=info
volumes:
- ./src:/app
depends_on:
- postgres
- redis
env_file:
- ./src/core/.env
celery_beat:
build: .
command: celery -A core beat --loglevel=info
volumes:
- ./src:/app
depends_on:
- postgres
- redis
env_file:
- ./src/core/.env
volumes:
postgres_data: