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