1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-20 04:59:27 +02:00
dockerfiles/litellm/docker-compose.yml
2024-12-27 15:51:16 +08:00

26 lines
626 B
YAML

services:
litellm:
image: ghcr.io/berriai/litellm:main-stable
command: --config /app/config.yaml --detailed_debug
ports:
- "4000:4000"
volumes:
- ./data/litellm/config.yaml:/app/config.yaml
environment:
- 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