Skip to content

Commit 5c3e8b3

Browse files
committed
fixed mlflow docker
1 parent cb8455c commit 5c3e8b3

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ docker/weaviate_data/
99
docker/weaviate_data-dev/
1010
docker/cache/
1111
docker/mlflow_runs/
12+
docker/mlflow_artifacts/
1213

1314
config/config.dev.yaml
1415
config/config.prod.yaml

docker/compose.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ services:
2121
reservations:
2222
devices:
2323
- driver: nvidia
24-
device_ids: [ "1" ]
25-
capabilities: [ gpu ]
24+
device_ids: ["1"]
25+
capabilities: [gpu]
2626

2727
weaviate:
2828
image: cr.weaviate.io/semitechnologies/weaviate:1.26.5
@@ -49,7 +49,6 @@ services:
4949
profiles:
5050
- weaviate
5151

52-
5352
weaviate-dev:
5453
image: cr.weaviate.io/semitechnologies/weaviate:1.26.5
5554
user: ${UID:-1000}:${GID:-1000}
@@ -80,7 +79,7 @@ services:
8079

8180
mlflow:
8281
image: ghcr.io/mlflow/mlflow:latest
83-
user: 1000:1000
82+
user: ${UID:-1000}:${GID:-1000}
8483
command:
8584
- mlflow
8685
- ui
@@ -91,6 +90,7 @@ services:
9190
ports:
9291
- "${MLFLOW_EXPOSED:-5000}:5000"
9392
volumes:
93+
- ./mlflow_artifacts:/mlartifacts
9494
- ./mlflow_runs:/mlruns
9595
restart: on-failure
9696
networks:
@@ -103,7 +103,7 @@ services:
103103
ports:
104104
- "${FRONTEND_EXPOSED:-8080}:80"
105105
healthcheck:
106-
test: [ "CMD-SHELL", "curl -f http://localhost:80/heartbeat || exit 1" ]
106+
test: ["CMD-SHELL", "curl -f http://localhost:80/heartbeat || exit 1"]
107107
interval: 30s
108108
timeout: 10s
109109
retries: 5
@@ -115,7 +115,6 @@ services:
115115
profiles:
116116
- frontend
117117

118-
119118
fundus-murag-backend:
120119
image: p0w3r/fundus_murag_backend:latest
121120
user: ${UID:-1000}:${GID:-1000}

docker/setup-folders.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,9 @@ if [ ! -d "mlflow_runs" ]; then
4242
else
4343
echo "mlflow_runs already exists"
4444
fi
45+
46+
if [ ! -d "mlflow_artifacts" ]; then
47+
mkdir -v mlflow_artifacts
48+
else
49+
echo "mlflow_artifacts already exists"
50+
fi

0 commit comments

Comments
 (0)