chore: initial commit
This commit is contained in:
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user