Allow container to reboot properly if using /tmp/ for models. Fixes newly created folder having permissions issues.
This commit is contained in:
		@@ -12,10 +12,6 @@ COMPOSE_BAKE=true
 | 
			
		||||
CPU=2.00
 | 
			
		||||
RAM=4.0G
 | 
			
		||||
 | 
			
		||||
# How much the users are able to utilize the server.
 | 
			
		||||
REQUESTS=100
 | 
			
		||||
CHARACTERS=2000
 | 
			
		||||
 | 
			
		||||
### Languages ###
 | 
			
		||||
 | 
			
		||||
## Check for language model updates on each run.
 | 
			
		||||
@@ -45,6 +41,5 @@ MODELS_DIR=../../Volumes/LibreTranslate/models
 | 
			
		||||
 | 
			
		||||
## 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 dirs after a reboot.
 | 
			
		||||
## `@reboot /opt/Docker/Config/LibreTranslate/prep.sh`
 | 
			
		||||
## Please see the README for the CRON command related to this setting.
 | 
			
		||||
# MODELS_DIR=/tmp/LibreTranslate/models
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user