-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-dev.yml
48 lines (44 loc) · 1.02 KB
/
compose-dev.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
services:
web:
build:
context: .
dockerfile: ./docker/Dockerfile
container_name: PROJECT_NAME_web_dev
command: uv run uvicorn main:application_factory --reload --workers 1 --host 0.0.0.0 --port 8001
volumes:
- ./web/:/usr/src/app/
env_file:
- .env
ports:
- "8001:8001"
depends_on:
- redis
- postgres_db
queue:
build:
context: .
dockerfile: ./docker/Dockerfile
container_name: PROJECT_NAME_queue_dev
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_dev
volumes:
- redis_data:/data
postgres_db:
image: postgres:17-alpine
container_name: PROJECT_NAME_pgsql_dev
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env
volumes:
redis_data:
postgres_data: