-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.61 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
services:
mongodb:
image: mongo:6.0
container_name: parkvision-db
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
backend:
build: ./backend
container_name: parkvision-backend
ports:
- "3001:3001"
environment:
- PORT=3001
- MONGO_URI=mongodb://mongodb:27017/parkvision
# Live-preview JPEGs written by the ai-engine container, served by backend at /preview/*.
- PREVIEW_DIR=/preview-shared
volumes:
- preview_data:/preview-shared
- floor_images:/app/public/floors
depends_on:
- mongodb
frontend:
build: ./frontend
container_name: parkvision-frontend
ports:
- "5173:5173"
environment:
# Browser-side URL — must point at the host-exposed backend port.
- VITE_BACKEND_URL=http://localhost:3001
depends_on:
- backend
ai-engine:
build: ./ai-engine
container_name: parkvision-ai
environment:
- MONGO_URI=mongodb://mongodb:27017/parkvision
# main.py / run.py read SERVER_URL (was BACKEND_URL — code never used that name).
- SERVER_URL=http://backend:3001
- PREVIEW_DIR=/preview-shared
volumes:
- preview_data:/preview-shared
depends_on:
- backend
- mongodb
# Requires NVIDIA Container Toolkit on the host. Comment out the deploy
# block to run on CPU (paper §3.3.4 targets <35 ms YOLO; CPU runs ~140 ms).
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
volumes:
mongo_data:
preview_data:
floor_images: