-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
68 lines (60 loc) · 1.1 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
58
59
60
61
62
63
64
65
66
67
68
services:
webapp:
build:
context: .
container_name: webapp
env_file:
- ./.env-example
command: [ "/docker/webapp.sh" ]
ports:
- "8000:8000"
depends_on:
- db
db:
image: postgres:16
container_name: webapp_db
env_file:
- ./.env-example
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
celery:
build:
context: .
container_name: celery
env_file:
- ./.env-example
command: [ "/docker/celery.sh", "celery" ]
depends_on:
- webapp
- redis
beat:
build:
context: .
container_name: celery_beat
env_file:
- ./.env-example
command: [ "/docker/celery.sh", "beat" ]
depends_on:
- webapp
- redis
- celery
flower:
build:
context: .
container_name: flower
env_file:
- ./.env-example
command: [ "/docker/celery.sh", "flower" ]
ports:
- "5555:5555"
depends_on:
- webapp
- redis
- celery
redis:
image: redis:7.2.5
container_name: redis
volumes:
postgres_data: