Skip to content

Instantly share code, notes, and snippets.

@OneOfOne
Created January 2, 2026 02:49
Show Gist options
  • Select an option

  • Save OneOfOne/5c9693429cb81c7f33bb0f5951946e5c to your computer and use it in GitHub Desktop.

Select an option

Save OneOfOne/5c9693429cb81c7f33bb0f5951946e5c to your computer and use it in GitHub Desktop.
docker compose file for home assistant
❯ cat compose.yaml
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:beta"
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
# devices:
# - /dev/serial/by-id/usb-SONOFF_SONOFF_Dongle_Plus_MG24_ea951390f59aef119142b69061ce3355-if00-port0:/dev/ttyUSB0
restart: unless-stopped
privileged: true
network_mode: host
cap_add:
- NET_ADMIN
- NET_RAW
environment:
TZ: US/Central
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment