Skip to content

Commit

Permalink
ingress port collision (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaya-a authored Oct 30, 2023
1 parent 33cbf99 commit 6634e4b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions mlflow-gateway/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "mlflow-gateway"
description: "MLflow Gateway for managing model providers"
version: "0.0.5"
version: "0.0.6"
url: "https://github.com/akshaya-a/mlflow-hass/tree/main/mlflow-gateway"
slug: "mlflow-gateway"
init: false
Expand All @@ -12,8 +12,9 @@ homeassistant_api: true
panel_icon: mdi:flask
panel_title: MLflow Gateway
ingress: true
ingress_port: 5001
ports:
8099/tcp: 8099
5001/tcp: 5001
environment:
FORWARDED_ALLOW_IPS: "172.30.32.2" # Supervisor: https://developers.home-assistant.io/docs/add-ons/presentation#ingress
image: "ghcr.io/akshaya-a/{arch}-mlflow-hass-gateway"
Expand Down
2 changes: 1 addition & 1 deletion mlflow-gateway/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ echo "Starting MLflow gateway"
key=$(python /config.py)
echo $key
export OPENAI_API_KEY=$key
mlflow gateway start --config-path /route-config.yaml --port 8099 --host 0.0.0.0
mlflow gateway start --config-path /route-config.yaml --port 5001 --host 0.0.0.0
5 changes: 3 additions & 2 deletions mlflow-tracking/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "mlflow-tracking"
description: "MLflow Tracking Server for managing models + prompts"
version: "0.0.5"
version: "0.0.6"
url: "https://github.com/akshaya-a/mlflow-hass/tree/main/mlflow-tracking"
slug: "mlflow-tracking"
init: false
Expand All @@ -12,8 +12,9 @@ homeassistant_api: true
panel_icon: mdi:flask
panel_title: MLflow
ingress: true
ingress_port: 5000
ports:
8099/tcp: 8099
5000/tcp: 5000
map:
- share:rw # Used for artifacts storage, expects "tracking" share in HA
environment:
Expand Down
2 changes: 1 addition & 1 deletion mlflow-tracking/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ mlflow server \
--backend-store-uri sqlite:///data/mydb.sqlite \
--artifacts-destination /share/tracking/mlflow-hass \
--host 0.0.0.0 \
--port 8099
--port 5000

0 comments on commit 6634e4b

Please sign in to comment.