Files
templates/blueprints/libretranslate/docker-compose.yml
RubenMach.Oficial cc429b2ebd 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>
2025-09-25 20:47:52 -06:00

34 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 doesnt 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 isnt open to other users
# For more information, see https://docs.libretranslate.com/guides/manage_api_keys/