-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
75 lines (71 loc) · 2.02 KB
/
docker-compose.yaml
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
services:
db_langfuse:
image: postgres
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U langfuse"]
interval: 3s
timeout: 3s
retries: 10
environment:
- POSTGRES_USER=langfuse
- POSTGRES_PASSWORD=langfuse
- POSTGRES_DB=langfuse
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
langfuse-server:
image: langfuse/langfuse
depends_on:
db_langfuse:
condition: service_healthy
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://langfuse:langfuse@db_langfuse:5432/langfuse
- NEXTAUTH_SECRET=mysecret
- SALT=mysalt
- ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000
- NEXTAUTH_URL=http://localhost:3000
- TELEMETRY_ENABLED=${TELEMETRY_ENABLED:-true}
- LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES=${LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES:-false}
- HOSTNAME = ${HOSTNAME:-localhost}
db_mlflow:
image: mysql:8-oracle
restart: always
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 5
environment:
- MYSQL_DATABASE=mlflow
- MYSQL_USER=mlflow
- MYSQL_PASSWORD=mlflow
- MYSQL_ROOT_PASSWORD=mlflow
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql # Renamed volume to prevent future conflicts
mlflow_server:
image: ghcr.io/mlflow/mlflow
depends_on:
db_mlflow:
condition: service_healthy
ports:
- "5000:5000"
environment:
- DATABASE_URL=mysql+pymysql://mlflow:mlflow@db_mlflow:3306/mlflow
- HOSTNAME = ${HOSTNAME:-localhost}
command: >
sh -c "pip install PyMySQL[rsa] && mlflow server --backend-store-uri ${DATABASE_URL} --default-artifact-root /mlartifacts --host ${HOSTNAME}"
volumes:
- mlflow_artifacts:/mlartifacts
volumes:
mysql_data:
driver: local
postgres_data:
driver: local
mlflow_artifacts:
driver: local