From 1f44b236a588d688b4f6188ee4f2a07f6e2ead36 Mon Sep 17 00:00:00 2001 From: Adrian Barrio Date: Thu, 10 Oct 2024 09:14:28 +0200 Subject: [PATCH] feat: add LibreTranslate template --- public/svgs/libretranslate.svg | 1 + templates/compose/libretranslate.yaml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 public/svgs/libretranslate.svg create mode 100644 templates/compose/libretranslate.yaml diff --git a/public/svgs/libretranslate.svg b/public/svgs/libretranslate.svg new file mode 100644 index 0000000000..103d47d609 --- /dev/null +++ b/public/svgs/libretranslate.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/compose/libretranslate.yaml b/templates/compose/libretranslate.yaml new file mode 100644 index 0000000000..69b9e44667 --- /dev/null +++ b/templates/compose/libretranslate.yaml @@ -0,0 +1,19 @@ +# documentation: https://libretranslate.com/docs/ +# slogan: Free and open-source machine translation API, entirely self-hosted. +# tags: translate, api +# logo: svgs/libretranslate.svg +# port: 5000 + +services: + libretranslate: + image: "libretranslate/libretranslate:latest" + environment: + - SERVICE_FQDN_LIBRETRANSLATE_5000 + - LT_SSL=true + - LT_UPDATE_MODELS=true + - LT_LOAD_ONLY=en,es,fr,de,ja + volumes: + - api-keys:/app/db + - models:/home/libretranslate/.local + healthcheck: + test: ["CMD-SHELL", "./venv/bin/python scripts/healthcheck.py"]