1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-09-16 09:16:45 +02:00

add libretranslate/libretranslate

This commit is contained in:
kevin
2025-09-15 16:33:59 +08:00
parent af8befe320
commit e4d1cac9d5
3 changed files with 27 additions and 0 deletions

View File

@@ -416,6 +416,7 @@ A collection of delicious docker recipes.
- [x] ipfs/kubo
- [x] heartexlabs/label-studio
- [x] langfuse/langfuse
- [x] libretranslate/libretranslate
- [x] martialblog/limesurvey
- [x] linuxserver
- [x] airsonic :musical_note:

6
libretranslate/README.md Normal file
View File

@@ -0,0 +1,6 @@
libretranslate
==============
[LibreTranslate][1] is a Free and Open Source Machine Translation API.
[1]: https://github.com/LibreTranslate/LibreTranslate

View File

@@ -0,0 +1,20 @@
services:
libretranslate:
image: libretranslate/libretranslate:v1.7.3
ports:
- "5000:5000"
volumes:
- ./data/db:/app/db
- ./data/models:/home/libretranslate/.local
environment:
- LT_API_KEYS=true
- LT_API_KEYS_DB_PATH=/app/db/api_keys.db
- LT_UPDATE_MODELS=true
- LT_LOAD_ONLY=en,zh-Hans
healthcheck:
test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
interval: 10s
timeout: 4s
retries: 4
start_period: 5s
restart: unless-stopped