2023-10-06 21:22:13 +02:00
|
|
|
{
|
|
|
|
|
"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",
|
2023-12-08 14:40:20 +01:00
|
|
|
"image_tag": "v2",
|
2023-10-06 21:22:13 +02:00
|
|
|
"internal_port": "8080",
|
|
|
|
|
"restart": "unless-stopped",
|
|
|
|
|
"environment": [
|
2023-10-18 15:27:37 +02:00
|
|
|
"TZ=%TIMEZONE%",
|
|
|
|
|
"MODELS_PATH=/models"
|
2023-10-06 21:22:13 +02:00
|
|
|
],
|
|
|
|
|
"volumes": [
|
|
|
|
|
{
|
|
|
|
|
"source": "nextcloud_aio_localai_models",
|
|
|
|
|
"destination": "/models",
|
|
|
|
|
"writeable": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"source": "nextcloud_aio_localai_images",
|
2023-10-30 08:37:10 +01:00
|
|
|
"destination": "/tmp/generated/images/",
|
2023-10-06 21:22:13 +02:00
|
|
|
"writeable": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"source": "%NEXTCLOUD_DATADIR%",
|
|
|
|
|
"destination": "/nextcloud",
|
|
|
|
|
"writeable": false
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-12-20 04:12:59 -06:00
|
|
|
"devices": [
|
|
|
|
|
"/dev/dri"
|
|
|
|
|
],
|
|
|
|
|
"enable_nvidia_gpu": true,
|
2023-10-06 21:22:13 +02:00
|
|
|
"nextcloud_exec_commands": [
|
|
|
|
|
"mkdir '/mnt/ncdata/admin/files/nextcloud-aio-local-ai'",
|
2023-10-18 18:39:21 +02:00
|
|
|
"touch '/mnt/ncdata/admin/files/nextcloud-aio-local-ai/models.yaml'",
|
2023-10-06 21:22:13 +02:00
|
|
|
"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",
|
2023-10-30 10:44:09 +01:00
|
|
|
"php /var/www/html/occ app:enable integration_openai",
|
2023-10-18 18:39:21 +02:00
|
|
|
"php /var/www/html/occ config:app:set integration_openai url --value http://nextcloud-aio-local-ai:8080",
|
2023-10-30 10:44:09 +01:00
|
|
|
"php /var/www/html/occ app:install assistant",
|
|
|
|
|
"php /var/www/html/occ app:enable assistant"
|
2023-10-06 21:22:13 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|