Skip to content

Instantly share code, notes, and snippets.

@RyuzakiKK
Last active December 11, 2019 20:16
Show Gist options
  • Save RyuzakiKK/0ea8663f4225eceb2e20364ea7560b63 to your computer and use it in GitHub Desktop.
Save RyuzakiKK/0ea8663f4225eceb2e20364ea7560b63 to your computer and use it in GitHub Desktop.
Home Assistant Docker Compose
version: '3'
services:
homeassistant:
image: homeassistant/home-assistant:0.103.0
container_name: home-assistant
volumes:
- ~/docker_files/ha:/config
- /etc/localtime:/etc/localtime:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
restart: unless-stopped
depends_on:
- mosquitto
network_mode: host
mosquitto:
image: eclipse-mosquitto:1.6.7
container_name: mosquitto
network_mode: host
ports:
- 1883:1883
- 9001:9001
volumes:
- ~/docker_files/mosquitto/data:/mosquitto/data
- ~/docker_files/mosquitto/config:/mosquitto/config
- ~/docker_files/mosquitto/log:/mosquitto/log
zigbee2mqtt:
image: koenkk/zigbee2mqtt:1.7.1
container_name: zigbee2mqtt
devices:
- /dev/ttyACM0:/dev/ttyACM0
network_mode: host
restart: unless-stopped
volumes:
- ~/docker_files/zigbee2mqtt/data:/app/data
homeassistant: true
permit_join: true
mqtt:
base_topic: zigbee2mqtt
server: 'mqtt://localhost'
user: user
password: password
serial:
port: /dev/ttyACM0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment