-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
community containers - add libretranslate
Signed-off-by: Simon L <[email protected]>
- Loading branch information
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"aio_services_v1": [ | ||
{ | ||
"container_name": "nextcloud-aio-libretranslate", | ||
"display_name": "LibreTranslate", | ||
"documentation": "https://github.com/nextcloud/all-in-one/tree/main/community-containers/libretranslate", | ||
"image": "szaimen/aio-libretranslate", | ||
"image_tag": "v1", | ||
"internal_port": "5000", | ||
"restart": "unless-stopped", | ||
"environment": [ | ||
"TZ=%TIMEZONE%" | ||
], | ||
"volumes": [ | ||
{ | ||
"source": "nextcloud_aio_libretranslate_db", | ||
"destination": "/app/db", | ||
"writeable": true | ||
}, | ||
{ | ||
"source": "nextcloud_aio_libretranslate_models", | ||
"destination": "/home/libretranslate/.local", | ||
"writeable": true | ||
} | ||
], | ||
"nextcloud_exec_commands": [ | ||
"php /var/www/html/occ app:install integration_libretranslate", | ||
"php /var/www/html/occ config:app:set integration_libretranslate host --value='http://nextcloud-aio-libretranslate'", | ||
"php /var/www/html/occ config:app:set integration_libretranslate port --value='5000'" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## Local AI | ||
This container bundles LibreTranslate and auto-configures it for you. | ||
|
||
### Notes | ||
|
||
- After the initial startup is done, you might want to change the default language to translate from and to via: | ||
```bash | ||
# Adjust the values `en` and `de` in commands below accordingly | ||
sudo docker exec --user www-data nextcloud-aio-nextcloud php occ config:app:set integration_libretranslate from_lang --value="en" | ||
sudo docker exec --user www-data nextcloud-aio-nextcloud php occ config:app:set integration_libretranslate to_lang --value="de" | ||
``` | ||
- See https://github.com/nextcloud/all-in-one/tree/main/community-containers#community-containers how to add it to the AIO stack | ||
|
||
### Repository | ||
https://github.com/szaimen/aio-libretranslate | ||
|
||
### Maintainer | ||
https://github.com/szaimen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters