-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
76 lines (69 loc) · 1.52 KB
/
compose.yml
File metadata and controls
76 lines (69 loc) · 1.52 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: PROJECT_NAME-prod
x-logging: &logging-opts
options:
max-size: "100m"
max-file: "8"
services:
web:
build:
context: .
dockerfile: ./docker/Dockerfile
container_name: PROJECT_NAME_api_prod
command: uv run uvicorn main:application_factory --workers 1 --host 0.0.0.0 --port 8001
env_file:
- prod.env
ports:
- 8001:8001
depends_on:
- redis
- postgres_db
logging:
<<: *logging-opts
networks:
- default
- monitoring
queue:
build:
context: .
dockerfile: ./docker/Dockerfile
container_name: PROJECT_NAME_queue_prod
command: uv run taskiq worker app.tasks.broker:broker -tp '**/tasks/tasks.py' -fsd
volumes:
- ./web/:/usr/src/app/
- ./files/:/usr/files/
env_file:
- .env
depends_on:
- redis
logging:
<<: *logging-opts
taskiq_admin:
image: ghcr.io/taskiq-python/taskiq-admin:latest
container_name: taskiq_admin
ports:
- 5558:3000
env_file:
- .env
volumes:
- ./web/taskiq-admin-data:/usr/database/
logging:
<<: *logging-opts
redis:
image: redis:7-alpine
container_name: PROJECT_NAME_redis_prod
volumes:
- redis_data:/data
logging:
<<: *logging-opts
postgres_db:
image: postgres:17-alpine
container_name: PROJECT_NAME_pgsql_prod
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env
logging:
<<: *logging-opts
volumes:
redis_data:
postgres_data: