feat(llm-api): add MiniCPM-V LLM API service with Traefik routing
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
services:
|
||||
llm-api:
|
||||
container_name: llm-api
|
||||
image: ghcr.io/asepharyana/asepharyana-hub/llm-api:latest
|
||||
restart: always
|
||||
networks:
|
||||
app-shared-net:
|
||||
aliases:
|
||||
- llm-api
|
||||
env_file:
|
||||
- ../../.env
|
||||
environment:
|
||||
- MODEL_PATH=/models/MiniCPM-V-4.6-Q4_K_M.gguf
|
||||
- API_KEY=${LLM_API_KEY:-}
|
||||
volumes:
|
||||
- /root/models/gguf:/models:ro
|
||||
healthcheck:
|
||||
test: ['CMD-SHELL', 'curl -so /dev/null --connect-timeout 5 http://localhost:8080/health || test $? -eq 22']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
labels:
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "8080"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 2G
|
||||
reservations:
|
||||
memory: 1G
|
||||
|
||||
networks:
|
||||
app-shared-net:
|
||||
name: app-shared-net
|
||||
external: true
|
||||
Reference in New Issue
Block a user