services: postgres: image: postgres:16-alpine container_name: litellm_postgres restart: unless-stopped environment: POSTGRES_USER: litellm POSTGRES_PASSWORD: litellm123 POSTGRES_DB: litellm volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U litellm"] interval: 5s timeout: 5s retries: 5 litellm: image: ghcr.io/berriai/litellm:main-latest container_name: litellm restart: unless-stopped ports: - "8000:8000" env_file: - .env volumes: - ./config.yaml:/app/config.yaml depends_on: postgres: condition: service_healthy command: - "--config" - "./config.yaml" - "--port" - "8000" - "--drop_params" - "--telemetry" - "false" volumes: postgres_data: