Files
libretranslate/docker-compose.yml
2026-03-29 22:02:22 -04:00

21 lines
591 B
YAML

services:
libretranslate:
image: libretranslate/libretranslate:latest
container_name: libretranslate
restart: unless-stopped
environment:
LT_LOAD_ONLY: "en,th,tl,id,ms"
LT_DISABLE_WEB_UI: "false"
ports:
- "15000:5000"
volumes:
- libretranslate_data:/home/libretranslate/.local
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:5000/languages')\" || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 300s
volumes:
libretranslate_data: