Created
December 6, 2022 07:12
-
-
Save dpolyakov/06cbcef99b64d7612965571a2ce1cd65 to your computer and use it in GitHub Desktop.
homeassistant+mosquitto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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