fix: attach litellm to shared dashboard network
Deploy Dashboard (Dev) / deploy-dev (push) Successful in 2m34s

Connect LiteLLM to nas-dashboard_internal and point dashboard-dev to the litellm container hostname so health probes work without host-loopback routing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-03-02 03:31:44 +08:00
parent 6cabbd6c59
commit 9bae5a62a5
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ services:
- TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID:-} - TELEGRAM_CHAT_ID=${TELEGRAM_CHAT_ID:-}
- TELEGRAM_PROXY=${TELEGRAM_PROXY:-} - TELEGRAM_PROXY=${TELEGRAM_PROXY:-}
- CORS_ORIGINS=https://dev.nas.jimmygan.com,https://dev.nas.jimmygan.com:8443 - CORS_ORIGINS=https://dev.nas.jimmygan.com,https://dev.nas.jimmygan.com:8443
- LITELLM_URL=http://host.docker.internal:4005 - LITELLM_URL=http://litellm:4005
volumes: volumes:
- /volume1:/volume1 - /volume1:/volume1
- /volume1/docker/nas-dashboard/ssh/dashboard_terminal:/app/ssh/id_ed25519:ro - /volume1/docker/nas-dashboard/ssh/dashboard_terminal:/app/ssh/id_ed25519:ro
+6
View File
@@ -13,6 +13,8 @@ services:
- "127.0.0.1:${LITELLM_PORT:-4005}:4005" - "127.0.0.1:${LITELLM_PORT:-4005}:4005"
volumes: volumes:
- ./config:/config:ro - ./config:/config:ro
networks:
- nas-dashboard_internal
command: command:
- "--config" - "--config"
- "/config/litellm.yaml" - "/config/litellm.yaml"
@@ -25,3 +27,7 @@ services:
options: options:
max-size: "10m" max-size: "10m"
max-file: "3" max-file: "3"
networks:
nas-dashboard_internal:
external: true