esphome/docker-compose.yml hinzugefügt

This commit is contained in:
thomas committed 2026-10-10 17:01:20 +00:00
1 parent b4a1ff1a3c
commit 0f4fa7f71e
1 file changed
+29
+29
View File
@@ -0,0 +1,29 @@
services:
esphome:
image: esphome/esphome:stable
container_name: ${ESPHOME_CONTAINER_NAME:-esphome}
restart: unless-stopped
# Eigene feste MAC-Adresse für das Sens-Netzwerk
mac_address: 02:42:0a:00:14:88
environment:
- TZ=${TIMEZONE:-Europe/Berlin}
volumes:
- "${ESPHOME_VOL_CONFIG:-/opt/docker/esphome/config}:/config"
- /etc/localtime:/etc/localtime:ro
networks:
- sens_network
networks:
sens_network:
name: sens_macvlan
driver: macvlan
driver_opts:
parent: ${PHYSICAL_INTERFACE:-ens20}
ipam:
driver: default
config:
# Nutzt das gleiche Subnetz und Gateway wie Music Assistant
- subnet: ${SENS_SUBNET:-10.0.20.0/24}
gateway: ${SENS_GATEWAY:-10.0.20.1}
# Eigene IP-Adresse für ESPHome (Fallback .88)
ip_range: ${ESPHOME_CONTAINER_IP:-10.0.20.88/32}