mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-31 10:07:24 +01:00
update litellm
This commit is contained in:
@@ -1,12 +1,25 @@
|
||||
services:
|
||||
|
||||
litellm:
|
||||
image: ghcr.io/berriai/litellm:main-stable
|
||||
command: --config /app/config.yaml --detailed_debug
|
||||
ports:
|
||||
- "4000:4000"
|
||||
volumes:
|
||||
- ./data/config.yaml:/app/config.yaml
|
||||
- ./data/litellm/config.yaml:/app/config.yaml
|
||||
environment:
|
||||
- OPENAI_API_KEY=sk-xxxxxx
|
||||
- ANTHROPIC_API_KEY=sk-xxxxxx
|
||||
- DATABASE_URL=postgresql://litellm:litellm@postgres:5432/litellm
|
||||
- STORE_MODEL_IN_DB=True
|
||||
depends_on:
|
||||
- postgres
|
||||
restart: unless-stopped
|
||||
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
volumes:
|
||||
- ./data/postgres:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=litellm
|
||||
- POSTGRES_PASSWORD=litellm
|
||||
- POSTGRES_DB=litellm
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user