File size: 784 Bytes
892b8e1 5569a86 892b8e1 2b1862a 5569a86 892b8e1 5569a86 892b8e1 5569a86 892b8e1 5569a86 892b8e1 5569a86 892b8e1 | 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 | services:
freellmapi:
image: ghcr.io/tashfeenahmed/freellmapi:latest
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
environment:
NODE_ENV: production
PORT: 7860
# Bound to localhost by default — FreeLLMAPI is single-user and must not be
# exposed to the internet. Set HOST_BIND=0.0.0.0 to reach it from your LAN.
ports:
- "${HOST_BIND:-127.0.0.1}:${PORT:-7860}:7860"
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:7860/api/ping').then((res) => { if (!res.ok) process.exit(1); }).catch(() => process.exit(1));"
]
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
|