Add podman and homeassistant/esphome container support
Added podman to REQUIRED_PACKAGES for running homeassistant and esphome containers on R5C. Created docker/start-containers.sh script to start both containers with persistent /srv volumes for configuration. Ready for migration of homeassistant + esphome from 10.42.0 to 10.42.1. Configs can be copied from old vanrouter at /srv/homeassistant and /srv/esphome, then containers started on R5C. Ports: - Home Assistant: 8123 (accessed via --network=host) - ESPHome: 6052 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
# Start homeassistant and esphome containers on R5C
|
||||
# Usage: sudo ./start-containers.sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "=== Starting Home Assistant and ESPHome containers ==="
|
||||
|
||||
# Ensure /srv exists
|
||||
sudo mkdir -p /srv/homeassistant /srv/esphome
|
||||
|
||||
# Start homeassistant
|
||||
echo "Starting Home Assistant..."
|
||||
podman run -d \
|
||||
--name homeassistant \
|
||||
--restart=always \
|
||||
--privileged \
|
||||
-v /srv/homeassistant:/config \
|
||||
-v /run/dbus:/run/dbus:ro \
|
||||
--network=host \
|
||||
ghcr.io/home-assistant/home-assistant:stable
|
||||
|
||||
# Start esphome
|
||||
echo "Starting ESPHome..."
|
||||
podman run -d \
|
||||
--name esphome \
|
||||
--restart=always \
|
||||
-v /srv/esphome:/config \
|
||||
-p 6052:6052 \
|
||||
ghcr.io/esphome/esphome:stable \
|
||||
dashboard /config
|
||||
|
||||
echo "✅ Containers started"
|
||||
echo " Home Assistant: http://10.42.1.1:8123"
|
||||
echo " ESPHome: http://10.42.1.1:6052"
|
||||
Reference in New Issue
Block a user