Add an initial working configuration for LibreTranslate.

This commit is contained in:
2025-07-23 05:55:40 -07:00
parent e661b67b57
commit 593b1fbaf2
6 changed files with 201 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# Libreranslate Configuration
## Install
0. Copy `env.example` to `.env` and adjust the values as necessary.
```
cd $DOCKER_HOME/Config/LibreTranslate
cp env.example .env
vi .env
```
1. Run the `prep.sh` file to create the volume mounts.
```
$DOCKER_HOME/Config/LibreTranslate/prep.sh
```
2. If using a temporary location for `models/` such as `/tmp/`, ensure
that `prep.sh` is in `root`'s crontab.
```
@reboot $DOCKER_HOME/Config/LibreTranslate/prep.sh
```
3. Start the container up as normal.
```
docker compose up -d
```