route LiteLLM through shared Caddy network
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user