Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
mqtt-setup [2019/03/12 17:54]
Ryan Detzel
mqtt-setup [2019/03/12 18:00] (current)
Ryan Detzel
Line 2: Line 2:
  
 I'm using a local [[https://​mosquitto.org/​|mosquitto]] broker for all mqtt communication. The broker runs inside a docker on my home automation server. I'm using a local [[https://​mosquitto.org/​|mosquitto]] broker for all mqtt communication. The broker runs inside a docker on my home automation server.
 +
 +<​code>​
 +version: '​2.1'​
 +services:
 +  mqtt:
 +    container_name:​ mqtt
 +    image: eclipse-mosquitto:​latest
 +    restart: always
 +    ports:
 +      - "​1883:​1883"​
 +      - "​9001:​9001"​
 +    volumes:
 +      - ./​volumes/​mqtt:/​mosquitto
 +      - /​etc/​localtime:/​etc/​localtime:​ro
 +      - /​etc/​timezone:/​etc/​timezone:​ro
 +</​code>​