-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
46 lines (42 loc) · 1001 Bytes
/
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
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
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
redis:
image: redis:7-alpine
container_name: PROJECT_NAME_redis_prod
volumes:
- redis_data:/data
postgres_db:
image: postgres:17-alpine
container_name: PROJECT_NAME_pgsql_prod
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env
volumes:
redis_data:
postgres_data: {}