Move the LT_LOAD_ONLY to the value so that it can be omitted if wanting to download all languages.

This commit is contained in:
2025-07-26 11:28:04 -07:00
parent 16df857f08
commit 83fdb54768
2 changed files with 4 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ services:
- LT_API_KEYS_DB_PATH=/app/db/api_keys.db - LT_API_KEYS_DB_PATH=/app/db/api_keys.db
# Optimize loading time. Requires volume libretranslate_models. # Optimize loading time. Requires volume libretranslate_models.
- LT_UPDATE_MODELS=$UPDATE_MODELS - LT_UPDATE_MODELS=$UPDATE_MODELS
- LT_LOAD_ONLY=$LANGUAGES - $LANGUAGES
volumes: volumes:
# Store the API keys. # Store the API keys.
- libretranslate_api_keys:/app/db - libretranslate_api_keys:/app/db

View File

@@ -12,20 +12,16 @@ COMPOSE_BAKE=true
CPU=2.00 CPU=2.00
RAM=4.0G RAM=4.0G
CPU=$CPU_RECOMMENDED
RAM=$RAM_RECOMMENDED
### Languages ### ### Languages ###
## Check for language model updates on each run. ## Check for language model updates on each run.
UPDATE_MODELS=true UPDATE_MODELS=true
## Leave commented, blank, or set to "All" for default behavior. ## Use default behavior of downloading all models.
# LANGUAGES= # LANGUAGES=ALL
# LANGUAGES=All
## Otherwise set to a comma-separated list to enable only the desired models. ## Otherwise set to a comma-separated list to enable only the desired models.
LANGUAGES=en,es,fr,de LANGUAGES='LT_LOAD_ONLY=en,es,fr,de'
### API Keys ### ### API Keys ###