Files
asepharyana-hub-llm-api/docker-compose.yml
T

28 lines
670 B
YAML

services:
llm-api:
container_name: llm-api
image: ghcr.io/asepharyana/llm-api:latest
build:
context: .
dockerfile: Dockerfile
restart: always
networks:
app-shared-net:
aliases:
- llm-api
volumes:
- /root/models/gguf:/root/models/gguf:ro
environment:
- MODEL_PATH=/root/models/gguf/MiniCPM-V-4.6-Q4_K_M.gguf
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: 30s
networks:
app-shared-net:
name: app-shared-net
external: true