-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.compose
More file actions
64 lines (61 loc) · 1.42 KB
/
Copy pathstack.compose
File metadata and controls
64 lines (61 loc) · 1.42 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
services:
qdrant:
image: qdrant/qdrant:latest
ports:
- "6333:6333"
volumes:
- qdrant_storage:/qdrant/storage
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/ready"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
backend:
build:
context: ../backend
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- ../backend/.env
environment:
- PYTHONUNBUFFERED=1
- QDRANT_URL=http://qdrant:6333
volumes:
- ../backend:/app
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
depends_on:
qdrant:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')",
]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
frontend:
build:
context: ../frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://backend:8000
volumes:
- ../frontend:/app
- frontend_node_modules:/app/node_modules
command: ["/bin/sh", "-c", "sleep 30 && npm run dev"]
depends_on:
backend:
condition: service_healthy
volumes:
qdrant_storage:
frontend_node_modules: