Files
nas-tools/litellm/docker-compose.yml
T
Gan, Jimmy 76c10a6c07 fix: use compose-compatible env_file format
Switch env_file declarations back to string list syntax so Synology's docker compose parser accepts the LiteLLM and cc-connect compose files.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-02 01:11:58 +08:00

28 lines
611 B
YAML

services:
litellm:
image: ghcr.io/berriai/litellm:main-latest
container_name: litellm
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=true"
env_file:
- .env
environment:
- LITELLM_MASTER_KEY=${LITELLM_MASTER_KEY:-}
ports:
- "127.0.0.1:${LITELLM_PORT:-4005}:4005"
volumes:
- ./config:/config:ro
command:
- "--config"
- "/config/litellm.yaml"
- "--host"
- "0.0.0.0"
- "--port"
- "4005"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"