Skip to content

Instantly share code, notes, and snippets.

@LewkyB
Last active October 23, 2021 19:38
Show Gist options
  • Save LewkyB/4ffa8ff6deffbd8e4598fd731b352fb6 to your computer and use it in GitHub Desktop.
Save LewkyB/4ffa8ff6deffbd8e4598fd731b352fb6 to your computer and use it in GitHub Desktop.
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/raspberrypi4-homeassistant:stable"
volumes:
- /home/pi/home_assistant/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
network_mode: host
mqtt:
container_name: mosquitto
image: eclipse-mosquitto:latest
volumes:
- /home/pi/mosquitto/data:/mosquitto/data
- /home/pi/mosquitto/log:/mosquitto/log
restart: unless-stopped
privileged: true
network_mode: host
zigbee2mqtt:
container_name: zigbee2mqtt
image: koenkk/zigbee2mqtt
volumes:
- ./data:/app/data
- /run/udev:/run/udev:ro
devices:
- /dev/ttyACM0:/dev/ttyACM0
restart: always
network_mode: host
privileged: true
environment:
- TZ=America/Chicago
esphome:
image: esphome/esphome
volumes:
- ./:/config:rw
# Use local time for logging timestamps
- /etc/localtime:/etc/localtime:ro
network_mode: host
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment