mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
Co-authored-by: Simon L. <szaimen@e.mail.de> Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com>
51 lines
1.9 KiB
JSON
51 lines
1.9 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": "ghcr.io/docjyj/aio-local-ai-vulkan",
|
|
"image_tag": "v0",
|
|
"internal_port": "8080",
|
|
"restart": "unless-stopped",
|
|
"environment": [
|
|
"TZ=%TIMEZONE%",
|
|
"LOCALAI_API_KEY=%LOCALAI_API_KEY%"
|
|
],
|
|
"ports": [
|
|
{
|
|
"ip_binding": "%APACHE_IP_BINDING%",
|
|
"port_number": "10078",
|
|
"protocol": "tcp"
|
|
}
|
|
],
|
|
"volumes": [
|
|
{
|
|
"source": "nextcloud_aio_localai_models",
|
|
"destination": "/models",
|
|
"writeable": true
|
|
},
|
|
{
|
|
"source": "nextcloud_aio_localai_backends",
|
|
"destination": "/backends",
|
|
"writeable": true
|
|
}
|
|
],
|
|
"secrets": [
|
|
"LOCAL_AI_PASS"
|
|
],
|
|
"ui_secret": "LOCAL_AI_PASS",
|
|
"devices": [
|
|
"/dev/dri"
|
|
],
|
|
"nextcloud_exec_commands": [
|
|
"php /var/www/html/occ app:install integration_openai",
|
|
"php /var/www/html/occ app:enable 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 config:app:set integration_openai api_key --value %LOCALAI_API_KEY%",
|
|
"php /var/www/html/occ app:install assistant",
|
|
"php /var/www/html/occ app:enable assistant"
|
|
]
|
|
}
|
|
]
|
|
}
|