-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (42 loc) · 1.12 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (42 loc) · 1.12 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: agentune
POSTGRES_USER: agentune
POSTGRES_PASSWORD: agentune
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./scripts/init-mlflow-db.sh:/docker-entrypoint-initdb.d/init-mlflow-db.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agentune"]
interval: 5s
timeout: 3s
retries: 5
mlflow:
image: ghcr.io/mlflow/mlflow:v3.10.1
depends_on:
postgres:
condition: service_healthy
environment:
MLFLOW_BACKEND_STORE_URI: postgresql://agentune:agentune@postgres:5432/mlflow
command:
- /bin/bash
- -c
- |
pip install --no-cache-dir psycopg2-binary
mlflow server \
--backend-store-uri "$$MLFLOW_BACKEND_STORE_URI" \
--host 0.0.0.0 \
--port 5000
ports:
- "5001:5000"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/health')"]
interval: 10s
timeout: 5s
retries: 30
volumes:
pgdata: