Add an initial working configuration for LibreTranslate.

This commit is contained in:
2025-07-23 05:55:40 -07:00
parent e661b67b57
commit 593b1fbaf2
6 changed files with 201 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
# This file should be renamed '.env' and have any private values modified.
COMPOSE_BAKE=true
### Languages ###
## Check for language model updates on each run.
UPDATE_MODELS=true
## Leave commented, blank, or set to "All" for default behavior.
# LANGUAGES=
# LANGUAGES=All
## Otherwise set to a comma-separated list to enable only the desired models.
LANGUAGES=en,es,fr,de
### API Keys ###
API_KEYS=true
API_KEYS_DB_PATH=/app/db/api_keys.db
API_KEYS_DIR=../../Volumes/LibreTranslate/api_keys
### Models ###
## Storing models prevents them from needing downloaded each run.
## Placing them under Volumes means they will increase backup sizes.
MODELS_DIR=../../Volumes/LibreTranslate/models
## Not providing any location puts them in the default Docker /var/ location.
# MODELS_DIR=
## Storing them in /tmp/ will cause them to get reset after reboots, but hides
## them from backup type locations such as Volumes/LibreTranslate and /var/.
## This will require a CRON entry for prepping the project after a reboot.
## `@reboot $DOCKER_HOME/Config/LibreTranslate/prep.sh`
# MODELS_DIR=/tmp/LibreTranslate/models