🚅 docs: Updated Example for LiteLLM ports and Volume mount (#2941)

* Added necessary "ports" section for it to work by default
* Added (commented out) example GCP Vertex volume mount for auth config and for ENV variable.
This commit is contained in:
Ventz Petkov 2024-06-01 08:51:18 -04:00 committed by GitHub
parent 8939d8af37
commit 37ae484fbc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,9 +120,13 @@ version: '3.4'
# image: ghcr.io/berriai/litellm:main-latest
# volumes:
# - ./litellm/litellm-config.yaml:/app/config.yaml
# - ./litellm/application_default_credentials.json:/app/application_default_credentials.json # only if using Google Vertex
# ports:
# - "4000:8000"
# command: [ "--config", "/app/config.yaml", "--port", "8000", "--num_workers", "8" ]
# environment:
# OPENAI_API_KEY: none ## needs to be set if ollama's openai api compatibility is used
# GOOGLE_APPLICATION_CREDENTIALS: /app/application_default_credentials.json ## only if using Google Vertex
# REDIS_HOST: redis
# REDIS_PORT: 6379
# REDIS_PASSWORD: RedisChangeMe