-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 1.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (38 loc) · 1.06 KB
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
38
39
# LLMProxyAS — local / deployment stack
#
# Usage:
# docker compose up -d --build
# docker compose logs -f
# docker compose down
#
# Edit configs/config.json (api_key, base_url) before starting.
# Configs are mounted read-only so host changes apply after restart.
services:
llmproxyas:
build:
context: .
dockerfile: Dockerfile
image: llmproxyas:${IMAGE_TAG:-latest}
container_name: llmproxyas
ports:
- "${HOST_PORT:-20182}:20182"
volumes:
# Mount live configs from host (recommended for secrets & model list).
- ./configs:/app/configs:ro
environment:
# Reserved for future env-based overrides; process currently reads JSON files.
TZ: ${TZ:-UTC}
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:20182/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
# Uncomment if you need host network (rare):
# network_mode: host