mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-15 20:25:24 +02:00
Add LibreTranslate translation API template for Dokploy (#398)
* Add LibreTranslate translation API template for Dokploy * correcion de ubicacion del meta.json de libretranslate * Fix: process and sort meta.json * style: Update logo for light and dark theme compatibility * Update blueprints/libretranslate/docker-compose.yml --------- Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
dd19067f60
commit
cc429b2ebd
33
blueprints/libretranslate/docker-compose.yml
Normal file
33
blueprints/libretranslate/docker-compose.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
libretranslate:
|
||||
image: libretranslate/libretranslate:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5000"
|
||||
environment:
|
||||
# Enables the API key system
|
||||
- LT_API_KEYS=true
|
||||
# Defines the path for the API keys database INSIDE the container
|
||||
- LT_API_KEYS_DB_PATH=/app/db/api_keys.db
|
||||
# Optional: Load only the languages you need to save RAM (Spanish, English, Chinese)
|
||||
# - LT_LOAD_ONLY=en,es,zh-Hans
|
||||
# This ensures the API is not public and does not accept requests when api_key is ""
|
||||
# - LT_REQ_LIMIT=0
|
||||
# This disables the web UI so it doesn’t show on the link
|
||||
# - LT_DISABLE_WEB_UI=true
|
||||
# This only allows requests from a specific origin page
|
||||
# - LT_REQUIRE_API_KEY_ORIGIN=webthat.canuse.translate.com
|
||||
volumes:
|
||||
# Volume to store downloaded language models
|
||||
- libretranslate_models:/home/libretranslate/.local
|
||||
# Volume to store the API keys database
|
||||
- libretranslate_api_keys:/app/db
|
||||
|
||||
volumes:
|
||||
libretranslate_models:
|
||||
libretranslate_api_keys:
|
||||
# TO GET AN API KEY YOU MUST GO TO THE TERMINAL AND RUN -> ltmanage keys add 1000000
|
||||
# To make it work only with an API key, you need to use LT_REQ_LIMIT=0 so it isn’t open to other users
|
||||
# For more information, see https://docs.libretranslate.com/guides/manage_api_keys/
|
||||
30
blueprints/libretranslate/libretranslate.svg
Normal file
30
blueprints/libretranslate/libretranslate.svg
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" viewBox="0 0 187 188.8">
|
||||
<!-- Generator: Adobe Illustrator 29.7.1, SVG Export Plug-In . SVG Version: 2.1.1 Build 8) -->
|
||||
<defs>
|
||||
<style>
|
||||
.st0 {
|
||||
fill: #fff;
|
||||
}
|
||||
|
||||
.st1 {
|
||||
fill: #1565c0;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<g id="Capa_2">
|
||||
<rect class="st1" x="0" y="0" width="187" height="188.8"/>
|
||||
</g>
|
||||
<g id="svg8">
|
||||
<g id="layer1">
|
||||
<g id="g861">
|
||||
<g id="text833">
|
||||
<path id="path961" class="st0" d="M165.5,69.9l-8,9.8c-23.8-12.2-40.8-25-51.1-38.2-10.1,14-26.3,26.4-48.8,37.4l-8.5-9.5c29.8-13.8,48.3-30.4,55.5-49.9l11.4,3.5c-1.5,4.5-2.5,7.1-3,7.8,9.6,13.8,27.1,26.8,52.5,38.9h0ZM167.7,133.6l-8.8,8.4c-13.1-10-23.2-22.2-30.4-36.6-4.7,13.4-14.5,25.5-29.4,36.3l-8.8-8.1c10.3-6.9,18.1-15,23.3-24.3s8.1-22.6,8.8-39.9l11.8,1c0,2.3-.2,5.2-.5,8.7l-.5,4.7c0,2.4,1.3,6.8,3.9,13.4,2.7,6.5,6.6,12.8,11.6,19,5.1,6.1,11.4,11.9,18.8,17.4h0ZM105.5,115.8l-9.1,8.2c-5.1-6.7-10.1-12.2-15.1-16.5-5.6,12.3-14.3,23.8-26.2,34.7l-8.9-8c10.6-9.5,18.2-19,22.9-28.5,4.7-9.5,7.7-21.6,9-36.2l11.9,1.3c-.9,8.1-2.5,16.4-4.8,24.8,8.7,7.4,15.4,14.2,20.1,20.3h0Z"/>
|
||||
</g>
|
||||
<g id="text841">
|
||||
<path id="path964" class="st0" d="M78.3,169.3v-10.7H31.5v-84.1h-12.1v94.8h58.9Z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
8
blueprints/libretranslate/template.toml
Normal file
8
blueprints/libretranslate/template.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
|
||||
[config]
|
||||
[[config.domains]]
|
||||
serviceName = "libretranslate"
|
||||
port = 5000
|
||||
host = "${main_domain}"
|
||||
18
meta.json
18
meta.json
@@ -2985,6 +2985,24 @@
|
||||
"object-storage"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "libretranslate",
|
||||
"name": "LibreTranslate",
|
||||
"version": "1.7.3",
|
||||
"description": "LibreTranslate is a free and open-source machine translation API, powered by Argos Translate. Self-hosted, no external dependencies, and supports multiple languages.",
|
||||
"logo": "libretranslate.svg",
|
||||
"links": {
|
||||
"github": "https://github.com/LibreTranslate/LibreTranslate",
|
||||
"website": "https://libretranslate.com/",
|
||||
"docs": "https://docs.libretranslate.com/"
|
||||
},
|
||||
"tags": [
|
||||
"translation",
|
||||
"api",
|
||||
"nlp",
|
||||
"language"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "linkding",
|
||||
"name": "Linkding",
|
||||
|
||||
Reference in New Issue
Block a user