Skip to content

Instantly share code, notes, and snippets.

@stonegray
Created February 7, 2023 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stonegray/04e5914938c4363bbaea8402de441b38 to your computer and use it in GitHub Desktop.
Save stonegray/04e5914938c4363bbaea8402de441b38 to your computer and use it in GitHub Desktop.
services:
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
restart: unless-stopped
labels:
- "docker-compose-watcher.watch=1"
- "docker-compose-watcher.dir=."
volumes:
- ./mosquitto:/mosquitto
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
depends_on:
- adguardhome
- kea-dhcp4
ports:
- 1883:1883
- 9001:9001
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
labels:
- "docker-compose-watcher.watch=1"
- "docker-compose-watcher.dir=."
volumes:
- ./ha-config/:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
depends_on:
- mosquitto
- zigbee2mqtt
- adguardhome
- kea-dhcp4
- kea-dhcp6
- kea-dhcp-ddns
privileged: true
network_mode: host
mariadb:
image: mariadb
restart: always
ports:
- 3306:3306
environment:
MARIADB_ROOT_PASSWORD: ${HA_RECORDER_DB_ROOT_PW}
MYSQL_DATABASE: homeassistant
MYSQL_USER: homeassistant
MYSQL_PASSWORD: ${HA_RECORDER_DB_MAIN_PW}
depends_on:
- mosquitto
- zigbee2mqtt
- adguardhome
- kea-dhcp4
- kea-dhcp6
- kea-dhcp-ddns
volumes:
- ./mariadb:/var/lib/mysql
esphome:
container_name: esphome
image: esphome/esphome
ports:
- 6052:6052
volumes:
- ./esphome-config:/config
- /etc/localtime:/etc/localtime:ro
restart: always
privileged: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment