You've already forked dockerfiles
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:
@@ -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
6
libretranslate/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
libretranslate
|
||||
==============
|
||||
|
||||
[LibreTranslate][1] is a Free and Open Source Machine Translation API.
|
||||
|
||||
[1]: https://github.com/LibreTranslate/LibreTranslate
|
20
libretranslate/docker-compose.yml
Normal file
20
libretranslate/docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user