-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 964 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "3.9"
services:
litellm:
image: ghcr.io/berriai/litellm:main-latest
restart: unless-stopped
volumes:
- ./litellm_config.yaml:/app/config.yaml
env_file: .env
# Port 4000 is internal only — not exposed to LAN
expose:
- "4000"
command: ["--config", "/app/config.yaml", "--port", "4000", "--detailed_debug"]
deploy:
resources:
limits:
memory: 512M
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
app:
build: ./app
restart: unless-stopped
env_file: .env
ports:
- "${APP_PORT:-7860}:7860"
depends_on:
- litellm
volumes:
- ./app:/app # live editing without rebuild during dev
- ./litellm_config.yaml:/litellm_config.yaml:ro # models_config.py reads this
environment:
- LITELLM_BASE_URL=http://litellm:4000