-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (54 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
62 lines (54 loc) · 1.21 KB
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
services:
app:
&app
container_name: app
build:
dockerfile: Dockerfile
command:
- "python"
- "run_main.py"
restart: always
ports:
- "8000:8000"
depends_on:
rabbitmq:
condition: service_healthy
taskiq-worker:
<<: *app
container_name: taskiq-worker
ports: [ ]
command: [ taskiq, worker, core.taskiq.broker:broker, core.taskiq.tasks ]
depends_on:
rabbitmq:
condition: service_healthy
app:
condition: service_started
healthcheck:
test: [ "CMD", "pgrep", "taskiq" ]
interval: 5s
timeout: 5s
retries: 3
db:
image: postgres:16.2
container_name: db
restart: always
env_file:
- .template.env.docker
volumes:
- db:/var/lib/postgresql/data
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "check_running" ]
interval: 5s
timeout: 5s
retries: 5
volumes:
db:
driver: local
redis_data:
driver: local