chore: initial commit

This commit is contained in:
albertfj114
2026-03-29 22:02:22 -04:00
commit 24204a2475
2 changed files with 22 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.env
*.env

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
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: