mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-07 22:27:42 +08:00
b36f71ff74
Signed-off-by: Simon L <szaimen@e.mail.de>
34 lines
1.4 KiB
JSON
34 lines
1.4 KiB
JSON
{
|
|
"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 app:enable 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'"
|
|
]
|
|
}
|
|
]
|
|
}
|