fix: bind LiteLLM to 0.0.0.0 for Traefik accessibility

LiteLLM was binding to localhost by default, making it unreachable
from Traefik reverse proxy. Added --host 0.0.0.0 parameter to allow
connections from the Docker network.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-09 18:10:15 +01:00
parent eb4a025c20
commit c86faf1898

View File

@@ -98,7 +98,7 @@ services:
DATABASE_URL: null
volumes:
- ./litellm-config.yaml:/app/litellm-config.yaml:ro
command: ["--config", "/app/litellm-config.yaml", "--port", "4000", "--detailed_debug", "--drop_params"]
command: ["--config", "/app/litellm-config.yaml", "--host", "0.0.0.0", "--port", "4000", "--detailed_debug", "--drop_params"]
networks:
- compose_network
healthcheck:
@@ -153,8 +153,3 @@ volumes:
name: ${AI_COMPOSE_PROJECT_NAME}_webui_data
ai_crawl4ai_data:
name: ${AI_COMPOSE_PROJECT_NAME}_crawl4ai_data
networks:
compose_network:
name: ${NETWORK_NAME}
external: true