route LiteLLM through shared Caddy network

This commit is contained in:
Codex
2026-09-07 22:59:47 -07:00
parent 3efbd32e8f
commit 41ae90f88c
4 changed files with 17 additions and 6 deletions
+10 -2
View File
@@ -19,7 +19,10 @@ services:
depends_on:
adc-init:
condition: service_completed_successfully
network_mode: host
networks:
hk-web:
aliases:
- litellm-api
environment:
GOOGLE_APPLICATION_CREDENTIALS: /credentials/application_default_credentials.json
VERTEXAI_PROJECT: ${VERTEXAI_PROJECT}
@@ -28,7 +31,7 @@ services:
volumes:
- ./config.yaml:/app/config.yaml:ro
- google-adc:/credentials:ro
command: ["--config", "/app/config.yaml", "--host", "${LISTEN_IP:-127.0.0.1}", "--port", "${LITELLM_PORT:-1049}"]
command: ["--config", "/app/config.yaml", "--host", "0.0.0.0", "--port", "${LITELLM_PORT:-1049}"]
logging:
driver: json-file
options:
@@ -37,3 +40,8 @@ services:
volumes:
google-adc:
networks:
hk-web:
external: true
name: hk-web