mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-09 15:07:36 +08:00
34 lines
1.3 KiB
JSON
34 lines
1.3 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 config:app:set integration_libretranslate host --value='http://nextcloud-aio-libretranslate'",
|
||
|
"php /var/www/html/occ config:app:set integration_libretranslate port --value='5000'"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|