|
6 | 6 | "documentation": "https://github.com/nextcloud/all-in-one/tree/main/community-containers/local-ai",
|
7 | 7 | "image": "szaimen/aio-local-ai",
|
8 | 8 | "image_tag": "v2",
|
9 |
| - "internal_port": "8080", |
| 9 | + "internal_port": "8000", |
10 | 10 | "restart": "unless-stopped",
|
| 11 | + "ports": [ |
| 12 | + { |
| 13 | + "ip_binding": "%APACHE_IP_BINDING%", |
| 14 | + "port_number": "8000", |
| 15 | + "protocol": "tcp" |
| 16 | + } |
| 17 | + ], |
11 | 18 | "environment": [
|
12 | 19 | "TZ=%TIMEZONE%",
|
13 |
| - "MODELS_PATH=/models" |
| 20 | + "MODELS_PATH=/models", |
| 21 | + "API_KEY=%LOCAL_AI_API_KEY%", |
| 22 | + "LOCALAI_ADDRESS=:8000" |
| 23 | + ], |
| 24 | + "secrets": [ |
| 25 | + "LOCAL_AI_API_KEY" |
14 | 26 | ],
|
15 | 27 | "volumes": [
|
16 | 28 | {
|
|
22 | 34 | "source": "nextcloud_aio_localai_images",
|
23 | 35 | "destination": "/tmp/generated/images/",
|
24 | 36 | "writeable": true
|
25 |
| - }, |
26 |
| - { |
27 |
| - "source": "%NEXTCLOUD_DATADIR%", |
28 |
| - "destination": "/nextcloud", |
29 |
| - "writeable": false |
30 | 37 | }
|
31 | 38 | ],
|
32 | 39 | "enable_nvidia_gpu": false,
|
|
37 | 44 | "php /var/www/html/occ files:scan --path='/admin/files/nextcloud-aio-local-ai'",
|
38 | 45 | "php /var/www/html/occ app:install integration_openai",
|
39 | 46 | "php /var/www/html/occ app:enable integration_openai",
|
40 |
| - "php /var/www/html/occ config:app:set integration_openai url --value http://nextcloud-aio-local-ai:8080", |
| 47 | + "php /var/www/html/occ config:app:set integration_openai url --value http://nextcloud-aio-local-ai:8000", |
| 48 | + "php /var/www/html/occ config:app:set integration_openai api_key --value $LOCAL_AI_API_KEY", |
41 | 49 | "php /var/www/html/occ app:install assistant",
|
42 | 50 | "php /var/www/html/occ app:enable assistant"
|
43 | 51 | ]
|
|
0 commit comments