From a5f7dc61e2a8961b0bb45475ecc019899b842e3c Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 22 Jul 2026 00:49:54 -0700 Subject: [PATCH] fix: bind LiteLLM directly on Tailscale host network --- servers/bwh-hk-dc3/litellm/compose.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/servers/bwh-hk-dc3/litellm/compose.yaml b/servers/bwh-hk-dc3/litellm/compose.yaml index b603378..9ad1129 100644 --- a/servers/bwh-hk-dc3/litellm/compose.yaml +++ b/servers/bwh-hk-dc3/litellm/compose.yaml @@ -19,8 +19,7 @@ services: depends_on: adc-init: condition: service_completed_successfully - ports: - - "${LISTEN_IP:-127.0.0.1}:${HOST_PORT:-4000}:4000" + network_mode: host environment: GOOGLE_APPLICATION_CREDENTIALS: /credentials/application_default_credentials.json VERTEXAI_PROJECT: ${VERTEXAI_PROJECT} @@ -32,7 +31,7 @@ services: - ./runtime:/runtime entrypoint: ["/bin/sh", "-c"] command: - - touch /runtime/litellm.log && chmod 0644 /runtime/litellm.log && exec /app/docker/prod_entrypoint.sh --config /app/config.yaml --host 0.0.0.0 --port 4000 > /runtime/litellm.log 2>&1 + - touch /runtime/litellm.log && chmod 0644 /runtime/litellm.log && exec /app/docker/prod_entrypoint.sh --config /app/config.yaml --host ${LISTEN_IP:-127.0.0.1} --port ${HOST_PORT:-4000} > /runtime/litellm.log 2>&1 logging: driver: json-file options: