Skip to content

Instantly share code, notes, and snippets.

@dpolyakov
Created December 6, 2022 07:12
Show Gist options
  • Save dpolyakov/06cbcef99b64d7612965571a2ce1cd65 to your computer and use it in GitHub Desktop.
Save dpolyakov/06cbcef99b64d7612965571a2ce1cd65 to your computer and use it in GitHub Desktop.
homeassistant+mosquitto
version: '3.7'
services:
homeassistant:
container_name: homeassistant
user: 0:0 #root
hostname: homeassistant
build:
context: .
dockerfile: homeassistant-2022.10.1.dockerfile
volumes:
- /opt/smarthome/homeassistant/:/config/
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/run/dbus/:/var/run/dbus/:ro
privileged: true
network_mode: host
restart: always
depends_on:
- mosquitto
mosquitto:
container_name: mosquitto
user: 0:0 #root
image: eclipse-mosquitto:1.6.9
volumes:
- /opt/smarthome/mosquitto/data:/mosquitto/data/
- /opt/smarthome/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
- /opt/smarthome/mosquitto/log:/mosquitto/log
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
ports:
- "1883:1883"
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment