-
-
Notifications
You must be signed in to change notification settings - Fork 2
Full docker‐compose example
Thomas D edited this page Nov 17, 2023
·
2 revisions
This docker-compose.yml
example loads all services you need to get started with Qbus and Home Assistant:
- Home Assistant
- Mosquitto
- Qbus MQTT Gateway
- QBHA
version: '3'
services:
homeassistant:
image: homeassistant/home-assistant:2023.10.5
container_name: home-assistant
restart: unless-stopped
#privileged: true
network_mode: host # Must be host so HA can discover devices
volumes:
- ./home-assistant/config:/config
- ./home-assistant/media:/media
environment:
TZ: Europe/Brussels
depends_on:
- mosquitto
mosquitto:
image: eclipse-mosquitto:2.0.15
container_name: mosquitto
restart: unless-stopped
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
environment:
TZ: Europe/Brussels
qbusmqtt:
image: thomasddn/qbusmqtt:latest
container_name: qbusmqtt
restart: unless-stopped
network_mode: host # Must be host so it can discover the controller
environment:
MQTT_HOST: mosquitto
MQTT_PORT: 1883
MQTT_USER: user
MQTT_PWD: secret
TZ: Europe/Brussels
depends_on:
- mosquitto
- qbha
qbha:
image: thomasddn/qbha:latest
container_name: qbha
restart: unless-stopped
volumes:
- ./qbha/data:/data
environment:
MQTT_HOST: mosquitto
MQTT_PORT: 1883
MQTT_USER: user
MQTT_PWD: secret
TZ: Europe/Brussels
depends_on:
- homeassistant
- mosquitto