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",
|
2026-01-29 16:11:04 +01:00
|
|
|
"image": "ghcr.io/docjyj/aio-local-ai-vulkan",
|
|
|
|
|
"image_tag": "v1",
|
|
|
|
|
"internal_port": "10078",
|
2023-10-06 21:22:13 +02:00
|
|
|
"restart": "unless-stopped",
|
|
|
|
|
"environment": [
|
2023-10-18 15:27:37 +02:00
|
|
|
"TZ=%TIMEZONE%",
|
2026-01-29 16:11:04 +01:00
|
|
|
"LOCALAI_API_KEY=%LOCALAI_API_KEY%",
|
|
|
|
|
"LOCALAI_ADDRESS=:10078",
|
|
|
|
|
"LOCALAI_CONFIG_DIR=/configuration",
|
|
|
|
|
"LOCALAI_MODEL_PATH=/models",
|
|
|
|
|
"LOCALAI_BACKEND_PATH=/backends"
|
|
|
|
|
],
|
|
|
|
|
"ports": [
|
|
|
|
|
{
|
|
|
|
|
"ip_binding": "%APACHE_IP_BINDING%",
|
|
|
|
|
"port_number": "10078",
|
|
|
|
|
"protocol": "tcp"
|
|
|
|
|
}
|
2023-10-06 21:22:13 +02:00
|
|
|
],
|
|
|
|
|
"volumes": [
|
2026-01-29 16:11:04 +01:00
|
|
|
{
|
|
|
|
|
"source": "nextcloud_aio_localai_configuration",
|
|
|
|
|
"destination": "/configuration",
|
|
|
|
|
"writeable": true
|
|
|
|
|
},
|
2023-10-06 21:22:13 +02:00
|
|
|
{
|
|
|
|
|
"source": "nextcloud_aio_localai_models",
|
|
|
|
|
"destination": "/models",
|
|
|
|
|
"writeable": true
|
|
|
|
|
},
|
|
|
|
|
{
|
2026-01-29 16:11:04 +01:00
|
|
|
"source": "nextcloud_aio_localai_backends",
|
|
|
|
|
"destination": "/backends",
|
2023-10-06 21:22:13 +02:00
|
|
|
"writeable": true
|
|
|
|
|
}
|
|
|
|
|
],
|
2026-01-29 16:11:04 +01:00
|
|
|
"secrets": [
|
|
|
|
|
"LOCALAI_API_KEY"
|
|
|
|
|
],
|
|
|
|
|
"ui_secret": "LOCALAI_API_KEY",
|
|
|
|
|
"devices": [
|
|
|
|
|
"/dev/dri"
|
|
|
|
|
],
|
2023-10-06 21:22:13 +02:00
|
|
|
"nextcloud_exec_commands": [
|
|
|
|
|
"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",
|
2026-01-29 16:11:04 +01:00
|
|
|
"php /var/www/html/occ config:app:set integration_openai api_key --value %LOCALAI_API_KEY%",
|
2023-10-30 10:44:09 +01:00
|
|
|
"php /var/www/html/occ app:install assistant",
|
|
|
|
|
"php /var/www/html/occ app:enable assistant"
|
2026-01-29 16:11:04 +01:00
|
|
|
],
|
|
|
|
|
"backup_volumes": [
|
|
|
|
|
"nextcloud_aio_localai_configuration"
|
2023-10-06 21:22:13 +02:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|