mirror of
https://github.com/Dokploy/templates.git
synced 2026-04-29 12:11:22 -05:00
* 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>
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
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/
|