Files
hass-addons/localai-p2p-master/config.yaml
alex feb7c8214e
Some checks failed
Builder / Build addons (localai-p2p-master, amd64) (push) Failing after 9s
Builder / Build addons (localai-p2p-worker, amd64) (push) Failing after 9s
Validate / validate (push) Failing after 2s
Builder / Create release (push) Has been skipped
4
2025-05-30 15:23:24 +02:00

47 lines
1.1 KiB
YAML

name: "LocalAI P2P Master"
version: "1.0.2"
slug: "localai-p2p-master"
description: "LocalAI with P2P federation support (master node with GPU)"
url: "https://git.carriere.cloud/alex/hass-addons/tree/main/localai-p2p-master"
arch:
- amd64
build_from:
amd64: "ghcr.io/hassio-addons/base/amd64:15.0.7"
host_network: true
startup: application
ingress: true
ingress_port: 8080
ports:
8080/tcp: 8080
9090/tcp: 9090 # Port P2P TCP
9090/udp: 9090 # Port P2P UDP
ports_description:
8080/tcp: "LocalAI API port"
9090/tcp: "LocalAI P2P TCP port"
9090/udp: "LocalAI P2P UDP port"
environment:
LOCALAI_P2P: "true"
LOCALAI_FEDERATED: "true"
LOCALAI_MODELS_PATH: "/share/localai/models"
LOCALAI_ADDRESS: "0.0.0.0:8080"
LOCALAI_CORS: "true"
LOCALAI_CORS_ALLOW_ORIGINS: "*"
LOCALAI_P2P_LISTEN_PORT: "9090"
map:
- type: share
read_only: false
- type: addon_config
read_only: false
privileged:
- SYS_ADMIN
options:
gpu_layers: 99
debug: false
models_path: "/share/localai/models"
threads: 8
schema:
gpu_layers: "int(0,)"
debug: "bool?"
models_path: "str?"
threads: "int(1,)"