27 lines
1.1 KiB
YAML
27 lines
1.1 KiB
YAML
version: "3.9"
|
||
|
||
services:
|
||
matter-hub:
|
||
image: ghcr.io/t0bst4r/home-assistant-matter-hub:latest
|
||
container_name: home-assistant-matter-hub
|
||
restart: unless-stopped
|
||
network_mode: host # indispensable pour mDNS / Matter
|
||
environment:
|
||
# Adresse de ton instance Home Assistant
|
||
# Utilise l’IP locale plutôt que le domaine si possible
|
||
- HAMH_HOME_ASSISTANT_URL=https://ha.beyonder.synology.me
|
||
# Ton token long-lived (Home Assistant)
|
||
- HAMH_HOME_ASSISTANT_ACCESS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwMjU2ZGQ3OTk4MmI0NDdkODNlMjBkYjU4ZDRmOTg1NiIsImlhdCI6MTc2Mjc5NjIwMiwiZXhwIjoyMDc4MTU2MjAyfQ.n2E62mMtmfEqwAjusIGlI0FC5d5Q6jr55UxGAL4u2gc
|
||
# Niveau de log (debug si tu veux voir les tentatives d’appairage)
|
||
- HAMH_LOG_LEVEL=debug
|
||
# Port HTTP de l’interface locale du hub
|
||
- HAMH_HTTP_PORT=8482
|
||
volumes:
|
||
- ./home-assistant-matter-hub:/data
|
||
# Petit délai pour que le réseau LAN soit prêt
|
||
healthcheck:
|
||
test: ["CMD", "curl", "-f", "http://localhost:8482/health"]
|
||
interval: 30s
|
||
timeout: 5s
|
||
retries: 5
|