Skip to content

Instantly share code, notes, and snippets.

@gmorell
Created March 5, 2025 20:55
Show Gist options
  • Save gmorell/d8b8cd36ff10773bc5f8d7c24c26a70a to your computer and use it in GitHub Desktop.
Save gmorell/d8b8cd36ff10773bc5f8d7c24c26a70a to your computer and use it in GitHub Desktop.
gabe-podman-homeassistant-stax
mkdir your /mnt/whatevers
put .container's in /etc/containers/systemd/
systemctl daemon-reload
systemctl enable --now mosquitto
systemctl enable --now esphome
systemctl enable --now matter
systemctl enable --now hass
systemctl enable --now zigbee2mqtt
[Unit]
Description=ESPHome
[Container]
Image=ghcr.io/esphome/esphome
# Use volume and network defined below
Volume=/mnt/esphome:/config
Network=host
[Service]
Restart=always
TimeoutStartSec=900
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target
[Unit]
Description=HomeAssistant
[Container]
Image=docker.io/homeassistant/home-assistant:stable
# Use volume and network defined below
Volume=/mnt/hass:/config
Volume=/etc/localtime:/etc/localtime
PublishPort=8123:8123
AutoUpdate=registry
AddCapability=CAP_NET_RAW
AddCapability=CAP_NET_BIND_SERVICE
Volume=/run/dbus:/run/dbus:ro
Environment=TZ=America/New_York
[Service]
Restart=always
TimeoutStartSec=900
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target
[Unit]
Description=Matter
[Container]
Image=ghcr.io/home-assistant-libs/python-matter-server:stable
# Use volume and network defined below
Volume=/mnt/matter:/data
Network=host
[Service]
Restart=always
TimeoutStartSec=900
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target
listener 1883
allow_anonymous true
[Unit]
Description=Mosquitto
[Container]
Image=docker.io/library/eclipse-mosquitto
Volume=/mnt/mosquitto:/mosquitto/
Network=host
[Service]
Restart=always
TimeoutStartSec=900
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target
[Unit]
Description=Zigbee2Mqtt
[Container]
Image=docker.io/koenkk/zigbee2mqtt
# Use volume and network defined below
Volume=/mnt/zigbee2mqtt:/app/data
Volume=/run/udev:/run/udev:ro
GroupAdd=keep-groups
AddDevice=/dev/ttyUSB0:/dev/ttyACM0
Environment=ZIGBEE2MQTT_CONFIG_MQTT_SERVER=mqtt://localhost:1883
Environment=ZIGBEE2MQTT_FRONTEND_PORT=8089
#PublishPort=8089:8089
#ExposeHostPort=1883
Network=host
[Service]
Restart=always
TimeoutStartSec=900
[Install]
# Start by default on boot
WantedBy=multi-user.target default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment