Skip to content

Instantly share code, notes, and snippets.

@Red5d
Created November 23, 2017 17:18
Show Gist options
  • Save Red5d/07d17bbff70a842ef697fc7fb3fb2847 to your computer and use it in GitHub Desktop.
Save Red5d/07d17bbff70a842ef697fc7fb3fb2847 to your computer and use it in GitHub Desktop.
docker-compose file for setting up homeassistant, node-red, and mqtt services
version: "3"
services:
homeassistant:
image: homeassistant/home-assistant
ports:
- "8123:8123"
- "3218:3218"
volumes:
- /opt/docker/home-assistant:/config
- /etc/localtime:/etc/localtime:ro
nodered:
image: nodered/node-red-docker:slim
ports:
- "1880:1880"
volumes:
- /opt/docker/nodered:/data
mqtt:
image: toke/mosquitto
ports:
- "1883:1883"
- "9001:9001"
volumes:
- /opt/docker/mqtt/config:/mqtt/config:ro
- /opt/docker/mqtt/log:/mqtt/log
- /opt/docker/mqtt/data:/mqtt/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment