mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
feat(local-ai): add configuration directory and backup volume
Signed-off-by: Jean-Yves <7360784+docjyJ@users.noreply.github.com>
This commit is contained in:
parent
67ff5d809a
commit
05a446985d
1 changed files with 9 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
||||||
"TZ=%TIMEZONE%",
|
"TZ=%TIMEZONE%",
|
||||||
"LOCALAI_API_KEY=%LOCALAI_API_KEY%",
|
"LOCALAI_API_KEY=%LOCALAI_API_KEY%",
|
||||||
"LOCALAI_ADDRESS=:10078",
|
"LOCALAI_ADDRESS=:10078",
|
||||||
|
"LOCALAI_CONFIG_DIR=/configuration",
|
||||||
"LOCALAI_MODEL_PATH=/models",
|
"LOCALAI_MODEL_PATH=/models",
|
||||||
"LOCALAI_BACKEND_PATH=/backends"
|
"LOCALAI_BACKEND_PATH=/backends"
|
||||||
],
|
],
|
||||||
|
|
@ -23,6 +24,11 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"volumes": [
|
"volumes": [
|
||||||
|
{
|
||||||
|
"source": "nextcloud_aio_localai_configuration",
|
||||||
|
"destination": "/configuration",
|
||||||
|
"writeable": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"source": "nextcloud_aio_localai_models",
|
"source": "nextcloud_aio_localai_models",
|
||||||
"destination": "/models",
|
"destination": "/models",
|
||||||
|
|
@ -48,6 +54,9 @@
|
||||||
"php /var/www/html/occ config:app:set integration_openai api_key --value %LOCALAI_API_KEY%",
|
"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:install assistant",
|
||||||
"php /var/www/html/occ app:enable assistant"
|
"php /var/www/html/occ app:enable assistant"
|
||||||
|
],
|
||||||
|
"backup_volumes": [
|
||||||
|
"nextcloud_aio_localai_configuration"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue