Skip to content

Instantly share code, notes, and snippets.

@lamlion
Forked from albertnis/homeassistant-compose.yml
Created August 10, 2020 21:30
Show Gist options
  • Save lamlion/2d43a6b1389b2a65480d000d2b9e3894 to your computer and use it in GitHub Desktop.
Save lamlion/2d43a6b1389b2a65480d000d2b9e3894 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