Created
June 5, 2020 20:57
-
-
Save mullender/70db0e1cadcf62cb20e8be8ada18a913 to your computer and use it in GitHub Desktop.
Docker compose homeassistant with openzwave and mqtt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
homeassistant: | |
container_name: homeassistant | |
image: homeassistant/raspberrypi4-homeassistant:latest | |
network_mode: "host" | |
ports: | |
- "8123:8123" | |
volumes: | |
- /home/pi/homeassistant/opt/homeassistant:/config | |
- /etc/localtime:/etc/localtime:ro | |
- /etc/letsencrypt:/etc/letsencrypt:ro | |
# devices: | |
# - /dev/ttyACM0:/dev/ttyACM0:rwm | |
restart: always | |
depends_on: | |
- mosquitto | |
healthcheck: | |
test: ["CMD", "curl", "-f", "http://127.0.0.1:8123"] | |
interval: 30s | |
timeout: 10s | |
retries: 6 | |
mosquitto: | |
container_name: mosquitto | |
image: eclipse-mosquitto | |
# user: "1000:1000" | |
ports: | |
- 1883:1883 | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- /home/pi/homeassistant/opt/mosquitto:/mosquitto/config:ro | |
- /home/pi/homeassistant/opt/mosquitto:/mosquitto/data | |
restart: on-failure | |
openzwave: | |
image: openzwave/ozwdaemon:latest | |
container_name: "qt-openzwave" | |
# network_mode: "host" | |
ports: | |
- 1983:1983 | |
security_opt: | |
- seccomp:unconfined | |
devices: | |
# map by id | |
- "/dev/serial/by-id/usb-Silicon_Labs_HubZ_Smart_Home_Controller_813001EE-if00-port0:/dev/ttyUSB0:rwm" | |
volumes: | |
- /home/pi/homeassistant/opt/ozw:/opt/ozw/config | |
environment: | |
MQTT_SERVER: "mosquitto" | |
# MQTT_USERNAME: "my-username" | |
# MQTT_PASSWORD: "my-password" | |
USB_PATH: "/dev/ttyUSB0" | |
OZW_NETWORK_KEY: "0x00,0x00,0x00,0x00,0x00,0x00,0x0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00" | |
restart: unless-stopped | |
depends_on: | |
- mosquitto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment