services: mosquitto: image: eclipse-mosquitto:2 container_name: domotica-mosquitto restart: unless-stopped volumes: - /mnt/ssd/config/domotica-iot/mosquitto/config:/mosquitto/config - /mnt/ssd/config/domotica-iot/mosquitto/data:/mosquitto/data ports: - "127.0.0.1:1883:1883" zigbee2mqtt: image: koenkk/zigbee2mqtt:latest container_name: domotica-zigbee2mqtt restart: unless-stopped depends_on: - mosquitto volumes: - /mnt/ssd/config/domotica-iot/zigbee2mqtt/data:/app/data - /run/udev:/run/udev:ro devices: - /dev/serial/by-id/usb-Itead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_V2_f043aa19a5f3ef11bbdbba1b6d9880ab-if00-port0:/dev/zigbee environment: - TZ=Europe/Rome ports: - "127.0.0.1:8080:8080" influxdb: image: influxdb:2 container_name: domotica-influxdb restart: unless-stopped volumes: - /mnt/ssd/config/domotica-iot/influxdb/store:/var/lib/influxdb2 environment: - DOCKER_INFLUXDB_INIT_MODE=setup - DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USER} - DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD} - DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG} - DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET} - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_TOKEN} ports: - "127.0.0.1:8086:8086" homeassistant: image: ghcr.io/home-assistant/home-assistant:stable container_name: domotica-homeassistant restart: unless-stopped network_mode: host volumes: - /mnt/ssd/config/domotica-iot/homeassistant/config:/config - /etc/localtime:/etc/localtime:ro depends_on: - mosquitto