mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-27 16:08:47 +03:00
Changed: ollama, photoprism, localai, jupyterlab Already had GPU accel and get enhanced multivendor support in umbrelOS 2.0: jellyfin, emby, ersatztv-legacy, frigate, immich, plex, homebridge, portainer, arcane, sabnzbd
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: localai_api_1
|
|
APP_PORT: 8080
|
|
PROXY_AUTH_WHITELIST: "/v1/*"
|
|
api:
|
|
image: localai/localai:v4.9.0@sha256:d78cd113b2bc5892d7533c1356e9c9725bb90e86a075356a63730f3d681ce4d7
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/readyz"]
|
|
interval: 1m
|
|
timeout: 20m
|
|
retries: 5
|
|
environment:
|
|
- MODELS_PATH=/models
|
|
- LOCALAI_BACKENDS_PATH=/backends
|
|
- LOCALAI_EXTERNAL_BACKENDS=cpu-llama-cpp
|
|
# The image pins its backend capability to CPU; point the override file at a missing path so
|
|
# LocalAI detects the host GPU and offers matching CUDA/ROCm/SYCL backends in its gallery
|
|
- LOCALAI_FORCE_META_BACKEND_CAPABILITY_RUN_FILE=/nonexistent
|
|
# The image bakes a malformed NVIDIA_REQUIRE_CUDA that the NVIDIA container runtime rejects
|
|
- NVIDIA_DISABLE_REQUIRE=true
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/models:/models:cached
|
|
- ${APP_DATA_DIR}/data/backends:/backends:cached
|
|
- ${APP_DATA_DIR}/data/data:/data:cached
|
|
- ${APP_DATA_DIR}/data/configuration:/configuration:cached
|
|
- ${APP_DATA_DIR}/data/images/:/tmp/generated/images/
|