Add an initial working configuration for LibreTranslate.
This commit is contained in:
		
							
								
								
									
										37
									
								
								Config/LibreTranslate/env.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								Config/LibreTranslate/env.example
									
									
									
									
									
										Normal 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
 | 
			
		||||
		Reference in New Issue
	
	Block a user