-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (87 loc) · 1.95 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (87 loc) · 1.95 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
postgres:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: robopipe
volumes:
- pgdata:/var/lib/postgresql/data
api:
build:
context: .
dockerfile: Dockerfile.api.dev
ports:
- "3000:3000"
environment:
DATABASE_URL: postgres://postgres:postgres@postgres:5432/robopipe
volumes:
- ./apps/api:/app/apps/api
- ./packages:/app/packages
- /app/node_modules
- /app/apps/api/node_modules
- /app/packages/database/node_modules
- /app/packages/schema/node_modules
depends_on:
- postgres
web:
build:
context: .
dockerfile: Dockerfile.web.dev
ports:
- "5173:5173"
environment:
VITE_STUDIO_API_BASE_URL: http://localhost:3000/v1
VITE_WEB_BASE_URL: http://localhost:5173
volumes:
- ./apps/web:/app/apps/web
- ./packages:/app/packages
- /app/node_modules
- /app/apps/web/node_modules
- /app/packages/schema/node_modules
depends_on:
- api
ml:
build:
context: ./apps/ml
dockerfile: Dockerfile
command: ["python", "-m", "app"]
ports:
- "8000:8000"
environment:
HOST: 0.0.0.0
PORT: 8000
WEBHOOK_URL: http://api:3000/models/
env_file:
- ./apps/ml/.env
volumes:
- ml-export:/app/export
- ml-dataset:/app/dataset
depends_on:
- api
ml-yolo:
build:
context: ./apps/ml-yolo
dockerfile: Dockerfile
command: ["python", "-m", "app"]
ports:
- "8001:8001"
environment:
HOST: 0.0.0.0
PORT: 8001
WEBHOOK_URL: http://api:3000/models/
env_file:
- ./apps/ml-yolo/.env
volumes:
- ml-yolo-export:/app/export
- ml-yolo-dataset:/app/dataset
depends_on:
- api
volumes:
pgdata:
ml-export:
ml-dataset:
ml-yolo-export:
ml-yolo-dataset: