1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-06-10 23:37:44 +02:00
dockerfiles/litellm/docker-compose.yml

26 lines
626 B
YAML
Raw Normal View History

2024-12-27 14:36:28 +08:00
services:
2024-12-27 15:51:16 +08:00
2024-12-27 14:36:28 +08:00
litellm:
image: ghcr.io/berriai/litellm:main-stable
command: --config /app/config.yaml --detailed_debug
ports:
- "4000:4000"
volumes:
2024-12-27 15:51:16 +08:00
- ./data/litellm/config.yaml:/app/config.yaml
2024-12-27 14:36:28 +08:00
environment:
2024-12-27 15:51:16 +08:00
- 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
2024-12-27 14:36:28 +08:00
restart: unless-stopped