-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
57 lines (57 loc) · 1.07 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
56
57
services:
db:
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=main
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
redis:
image: redis
command: redis-server --appendonly yes
volumes:
- redis_data:/data
web:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
env_file:
- ./.env
depends_on:
- db
- redis
celery:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
command: celery -A main worker -l INFO
volumes:
- .:/code
env_file:
- ./.env
depends_on:
- db
- redis
celery-beat:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
command: celery -A main beat -l info -S django
volumes:
- .:/code
env_file:
- ./.env
depends_on:
- redis
volumes:
postgres_data:
redis_data: