Add initial Docker Compose configuration for Home Assistant, Esphome, and MQTT services
This commit is contained in:
commit
1ebdc533ec
2 changed files with 42 additions and 0 deletions
32
compose.yaml
Normal file
32
compose.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue