← Todos os guias
Domoticz
Domoticz is a lightweight home automation system for monitoring and controlling lights, switches and a wide range of sensors, officially distributed as a Docker image with a documented Compose setup.
Este guia foi elaborado a partir da documentação oficial do Domoticz, ligada acima — verifique sempre lá os nomes exatos dos pacotes/versões antes de executar estes comandos num servidor de produção, uma vez que as versões da distribuição e do projeto mudam com o tempo.
1Create a project directory
mkdir -p /opt/domoticzcd /opt/domoticz2Create docker-compose.yml
Define the domoticz service using the official image, mapping port 8080 and persisting userdata.
services: domoticz: image: domoticz/domoticz:stable container_name: domoticz restart: unless-stopped ports: - "8080:8080" volumes: - ./config:/opt/domoticz/userdata environment: - TZ=Europe/Amsterdam
3Start Domoticz
docker compose up -d4First login
Open the web UI to run through initial setup.
Default access: http://<host-ip>:8080 (add an 8443:443 port mapping for HTTPS).