mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 13:23:02 +01:00
36 lines
907 B
YAML
36 lines
907 B
YAML
services:
|
|
|
|
litellm:
|
|
image: litellm/litellm:v1.77.1-stable
|
|
command: --config /app/config.yaml --telemetry False
|
|
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
|
|
- UI_USERNAME=litellm
|
|
- UI_PASSWORD=litellm
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
restart: true
|
|
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
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
|
|
interval: 10s
|
|
retries: 5
|
|
start_period: 30s
|
|
timeout: 10s
|
|
restart: unless-stopped
|