Files
env-docker/Config/LibreTranslate/env.example

51 lines
1.3 KiB
Plaintext

# This file should be renamed '.env' and have any private values modified.
COMPOSE_BAKE=true
### Container Specs ###
## For a small-scale server (such as 1 CPU, 1GB RAM).
# CPU=0.25
# RAM=640M
## For a fully capable server.
CPU=2.00
RAM=4.0G
CPU=$CPU_RECOMMENDED
RAM=$RAM_RECOMMENDED
### 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