Merge pull request #3823 from statickidz/add-libretranslate-template
Add LibreTranslate template
This commit is contained in:
1
public/svgs/libretranslate.svg
Normal file
1
public/svgs/libretranslate.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="187.043" height="188.815" viewBox="0 0 49.488 49.957"><defs><path id="a" d="M25.162 84.327h71.115v52.835H25.162z"/></defs><g style="fill:#1565c0"><g style="font-style:normal;font-weight:400;font-size:10.5833px;line-height:1.25;font-family:sans-serif;letter-spacing:0;word-spacing:0;white-space:pre;shape-inside:url(#a);fill:#1565c0;fill-opacity:1;stroke:none"><path d="m34.996 90.121-.615.76q-2.754-1.416-3.948-2.951-1.168 1.617-3.767 2.889l-.656-.734q3.457-1.602 4.284-3.85l.878.274q-.176.517-.232.604 1.116 1.597 4.056 3.008zm.165 4.92-.676.646q-1.515-1.158-2.347-2.827-.547 1.55-2.268 2.806l-.677-.625q1.199-.796 1.798-1.876.6-1.08.682-3.08l.91.077q0 .27-.042.672l-.036.362q0 .274.305 1.033.31.755.9 1.468.594.708 1.451 1.344zm-4.8-1.375-.703.63q-.594-.78-1.163-1.276-.65 1.421-2.02 2.677l-.688-.615q1.23-1.096 1.768-2.201.542-1.106.697-2.796l.92.098q-.103.94-.367 1.917 1.003.863 1.556 1.566z" style="font-style:normal;font-variant:normal;font-weight:700;font-stretch:normal;font-family:'Adobe Garamond Pro';-inkscape-font-specification:'Adobe Garamond Pro Bold';fill:#1565c0" aria-label="众" transform="matrix(4.32051 0 0 4.32051 -102.427 -372.58)"/></g><g style="font-style:normal;font-weight:400;font-size:43.3964px;line-height:1.25;font-family:sans-serif;letter-spacing:0;word-spacing:0;fill:#1565c0;fill-opacity:1;stroke:none;stroke-width:1.08492"><path d="M84.814 94.883v-3.558H69.19V63.247h-4.036v31.636z" style="fill:#1565c0;stroke-width:1.08492" transform="translate(-65.155 -44.926)" aria-label="L"/></g></g></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
19
templates/compose/libretranslate.yaml
Normal file
19
templates/compose/libretranslate.yaml
Normal file
@@ -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"]
|
||||
Reference in New Issue
Block a user