-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.04 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
version: "3.9"
services:
api:
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:5000"
environment:
- MARBLE_ROOT=/app
volumes:
- ./ml/data:/app/ml/data
restart: unless-stopped
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/api/v1/health')"]
interval: 30s
timeout: 5s
retries: 3
fastapi:
build:
context: .
dockerfile: Dockerfile
command: ["api", "--fastapi", "--port", "5001", "--host", "0.0.0.0"]
ports:
- "5001:5001"
environment:
- MARBLE_ROOT=/app
volumes:
- ./ml/data:/app/ml/data
restart: unless-stopped
profiles:
- fastapi
dashboard:
build:
context: .
dockerfile: Dockerfile
command: ["ml", "dashboard", "--port", "8080", "--host", "0.0.0.0"]
ports:
- "8080:8080"
environment:
- MARBLE_ROOT=/app
volumes:
- ./ml/data:/app/ml/data
restart: unless-stopped
profiles:
- dashboard