-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (61 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
66 lines (61 loc) · 1.3 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
65
66
services:
db:
image: postgres:15
restart: always
environment:
POSTGRES_USER: parktrack
POSTGRES_PASSWORD: parktrack_password
POSTGRES_DB: parktrack
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
api-server:
build: ../api-server
restart: always
depends_on:
- db
environment:
- DB_CONNECTION_URL=postgresql://parktrack:parktrack_password@db:5432/parktrack
- HOST=0.0.0.0
- PORT=8000
ports:
- "8000:8000"
car-detector:
build: ../car-detector
restart: always
depends_on:
- api-server
environment:
- API_URL=http://api-server:8000
- API_TOKEN=dev_token
# If using GPU, uncomment below:
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: 1
# capabilities: [gpu]
web-map:
build:
context: ../web-map
args:
- VITE_API_BASE_URL=http://localhost:8000
restart: always
depends_on:
- api-server
ports:
- "13000:80"
labeler:
build:
context: ../labeler
args:
- VITE_API_BASE_URL=http://localhost:8000
restart: always
depends_on:
- api-server
ports:
- "13001:80"
volumes:
db_data: