Skip to content

Instantly share code, notes, and snippets.

@LemonDouble
Created May 19, 2023 12:42
Show Gist options
  • Save LemonDouble/17ad67e43823872585593632005a807a to your computer and use it in GitHub Desktop.
Save LemonDouble/17ad67e43823872585593632005a807a to your computer and use it in GitHub Desktop.
HomeAssistant Docker Compose
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
mqtt:
container_name: mosquitto-mqtt
image: eclipse-mosquitto:2.0
restart: unless-stopped
volumes:
- "./mosquitto-data:/mosquitto"
ports:
- "1883:1883"
- "9001:9001"
command: "mosquitto -c /mosquitto-no-auth.conf"
environment:
- TZ=Asia/Tokyo
network_mode: host
zigbee2mqtt:
container_name: zigbee2mqtt
restart: unless-stopped
image: koenkk/zigbee2mqtt:latest
volumes:
- ./zigbee2mqtt-data:/app/data
- /run/udev:/run/udev:ro
- /etc/localtime:/etc/localtime:ro
ports:
- 8080:8080
environment:
- TZ=Asia/Tokyo
devices:
- /dev/serial/by-id/usb-Texas_Instruments_TI_CC2531_USB_CDC___0X0ADIJVO90127DJH-if00:/dev/ttyACM0
network_mode: host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment