Add initial Docker Compose configuration for Home Assistant, Esphome, and MQTT services

This commit is contained in:
Edgar P. Burkhart 2025-05-19 09:35:05 +02:00
commit 1ebdc533ec
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 42 additions and 0 deletions

32
compose.yaml Normal file
View file

@ -0,0 +1,32 @@
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /docker/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
privileged: true
network_mode: host
esphome:
container_name: esphome
image: "ghcr.io/esphome/esphome:stable"
volumes:
- /docker/esphome/config:/config
- /etc/localtime:/etc/localtime:ro
restart: always
privileged: true
network_mode: host
environment:
USERNAME: ${ESPHOME_USERNAME?No Esphome username}
PASSWORD: ${ESPHOME_PASSWORD?No Esphome username}
mqtt:
container_name: mqtt
image: eclipse-mosquitto:latest
volumes:
- /docker/mqtt/config:/mosquitto/config
ports:
- 1883:1883
- 1883:1883/udp
restart: always