-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (55 loc) · 1.17 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
version: "3.9"
services:
web:
build: ./deck_helper
command: python manage.py runserver 0.0.0.0:8000
container_name: app
volumes:
- media_volume:/usr/src/deck_helper/media
ports:
- "8000:8000"
env_file:
- .env.dev
depends_on:
- db
- celery
db:
image: postgres:14
container_name: database
volumes:
- postgres_data_dev:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=local_user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=local_db
broker:
image: redis:7
container_name: broker
ports:
- "6379:6379"
volumes:
- broker_dev:/data
celery:
build: ./deck_helper
container_name: celery
command: celery -A deck_helper worker -l info
volumes:
- media_volume:/usr/src/deck_helper/media
env_file:
- .env.dev
depends_on:
- broker
celery-beat:
build: ./deck_helper
container_name: celery-beat
command: celery -A deck_helper beat -l info
volumes:
- media_volume:/usr/src/deck_helper/media
env_file:
- .env.dev
depends_on:
- broker
volumes:
postgres_data_dev:
media_volume:
broker_dev: