-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.26 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: homevision
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
inference:
build: ./apps/inference
ports:
- "8000:8000"
# Optional: use GPU for faster inference
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
api:
build: ./apps/api
ports:
- "3001:3001"
environment:
DATABASE_URL: ${DATABASE_URL:-}
DB_HOST: postgres
DB_PORT: 5432
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_DATABASE: homevision
INFERENCE_URL: http://inference:8000
ENABLE_LABELING: "true"
depends_on:
postgres:
condition: service_healthy
inference:
condition: service_started
web:
build: ./apps/web
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_API_URL: http://localhost:3001
NEXT_PUBLIC_INFERENCE_URL: http://localhost:8000
NEXT_PUBLIC_ENABLE_LABELING: "true"
depends_on:
- api