Skip to content

Instantly share code, notes, and snippets.

@albertnis
Last active August 10, 2020 21:30
Show Gist options
  • Save albertnis/7cdd52aa798148c99cd485d20bcfb0c2 to your computer and use it in GitHub Desktop.
Save albertnis/7cdd52aa798148c99cd485d20bcfb0c2 to your computer and use it in GitHub Desktop.
Docker compose (v1) file with Home Assistant, MQTT broker and Node-RED. For Raspberry Pi/ARM.
homeassistant:
container_name: homeassistant
restart: always
net: "host"
user: "1000"
environment:
- PUID=1000
- PGID=1000
image: homeassistant/armhf-homeassistant
ports:
- 0.0.0.0:8123:8123
volumes:
- /etc/localtime:/etc/localtime:ro
- /mnt/dietpi_userdata/homeassistant-docker:/config:rw
mosquitto:
container_name: mosquitto
net: "host"
restart: always
user: "1000"
environment:
- PUID=1000
- PGID=1000
image: eclipse-mosquitto
ports:
- 0.0.0.0:9001:9001
- 0.0.0.0:1883:1883
volumes:
- /mnt/dietpi_userdata/mosquitto-docker:/mosquitto/config
nodered:
container_name: nodered
net: "host"
restart: always
user: "1000"
environment:
- PUID=1000
- PGID=1000
image: nodered/node-red-docker:rpi-v8
ports:
- 0.0.0.0:1880:1880
volumes:
- /etc/localtime:/etc/localtime:ro
- /mnt/dietpi_userdata/nodered-docker:/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment