-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.33 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.33 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
services:
api:
build: ./api
ports:
- "8000:8000"
env_file: .env
volumes:
- ./api:/app
depends_on:
mlflow:
condition: service_healthy
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
web:
image: node:20-alpine
working_dir: /app
volumes:
- ./web:/app
ports:
- "4321:4321"
command: sh -c "npm install && npm run dev -- --host"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:4321"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
mlflow:
build: ./infra/mlflow
ports:
- "5000:5000"
env_file: .env
environment:
AWS_ACCESS_KEY_ID: ${R2_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${R2_SECRET_ACCESS_KEY}
MLFLOW_S3_ENDPOINT_URL: ${R2_ENDPOINT_URL}
command: >
mlflow server
--backend-store-uri ${DATABASE_URL}
--default-artifact-root s3://${R2_BUCKET_NAME}/models
--host 0.0.0.0
--port 5000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
volumes:
mlflow_data: