32 lines
		
	
	
		
			588 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			588 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # LibreTranslate Configuration
 | |
| 
 | |
| ## Install
 | |
| 
 | |
| 1. Copy `env.example` to `.env` and adjust the values as necessary.
 | |
| 
 | |
| ```
 | |
| cd $DOCKER_HOME/Config/LibreTranslate
 | |
| cp env.example .env
 | |
| vi .env
 | |
| ```
 | |
| 
 | |
| 2. Run the `prep.sh` file to create the volume mounts.
 | |
| 
 | |
| ```
 | |
| ./prep.sh
 | |
| ```
 | |
| 
 | |
| 3. If using a temporary location for `models/` such as `/tmp/`, ensure
 | |
| that the reboot script is in `root`'s crontab to set the folders back up.
 | |
| 
 | |
| ```
 | |
| @reboot /opt/Docker/Config/LibreTranslate/cron-reboot.sh
 | |
| ```
 | |
| 
 | |
| 4. Start the container up as normal.
 | |
| 
 | |
| ```
 | |
| cp docker-compose.main.yml docker-compose.yml
 | |
| docker compose up -d
 | |
| ```
 |