mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-06 13:56:45 +08:00
609c61ad65
Signed-off-by: Simon L <szaimen@e.mail.de>
46 lines
1.8 KiB
JSON
46 lines
1.8 KiB
JSON
{
|
|
"aio_services_v1": [
|
|
{
|
|
"container_name": "nextcloud-aio-local-ai",
|
|
"display_name": "Local AI",
|
|
"documentation": "https://github.com/nextcloud/all-in-one/tree/main/community-containers/local-ai",
|
|
"image": "szaimen/aio-local-ai",
|
|
"image_tag": "v1",
|
|
"internal_port": "8080",
|
|
"restart": "unless-stopped",
|
|
"environment": [
|
|
"TZ=%TIMEZONE%",
|
|
"MODELS_PATH=/models"
|
|
],
|
|
"volumes": [
|
|
{
|
|
"source": "nextcloud_aio_localai_models",
|
|
"destination": "/models",
|
|
"writeable": true
|
|
},
|
|
{
|
|
"source": "nextcloud_aio_localai_images",
|
|
"destination": "/images",
|
|
"writeable": true
|
|
},
|
|
{
|
|
"source": "%NEXTCLOUD_DATADIR%",
|
|
"destination": "/nextcloud",
|
|
"writeable": false
|
|
}
|
|
],
|
|
"nextcloud_exec_commands": [
|
|
"mkdir '/mnt/ncdata/admin/files/nextcloud-aio-local-ai'",
|
|
"touch '/mnt/ncdata/admin/files/nextcloud-aio-local-ai/models.yaml'",
|
|
"echo 'Scanning nextcloud-aio-local-ai folder for admin user...'",
|
|
"php /var/www/html/occ files:scan --path='/admin/files/nextcloud-aio-local-ai'",
|
|
"php /var/www/html/occ app:install integration_openai",
|
|
"php /var/www/html/occ config:app:set integration_openai url --value http://nextcloud-aio-local-ai:8080",
|
|
"php /var/www/html/occ app:install assistant"
|
|
],
|
|
"backup_volumes": [
|
|
"nextcloud_aio_localai_models"
|
|
]
|
|
}
|
|
]
|
|
}
|