-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
50 lines (49 loc) · 981 Bytes
/
Copy pathcompose.yml
File metadata and controls
50 lines (49 loc) · 981 Bytes
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
services:
web:
build: .
command: fastapi dev app/main.py --host 0.0.0.0 --port 8000
volumes:
- ./app/migrations/versions:/app/app/migrations/versions
ports:
- 8000:8000
depends_on:
- db
- redis
- worker
develop:
watch:
- action: sync
path: .
target: /app
- action: rebuild
path: ./uv.lock
worker:
build: .
command: celery -A app worker -l info
depends_on:
- db
- redis
develop:
watch:
- action: sync
path: .
target: /app
- action: rebuild
path: ./uv.lock
db:
image: postgres:17-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
expose:
- 5432
environment:
- POSTGRES_DB=fastapi
- POSTGRES_USER=fastapi
- POSTGRES_PASSWORD=fastapi
redis:
image: redis
volumes:
- redis_data:/data
volumes:
postgres_data:
redis_data: