Difference between revisions of "Home Automation/Hass with Dockerfile"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | + | Just replace Node-RED image with the vanilla one if you are not installing extra NPM libs: | |
<pre> | <pre> | ||
| Line 9: | Line 9: | ||
hass: | hass: | ||
nodered: | nodered: | ||
| + | hass_media: | ||
services: | services: | ||
| Line 18: | Line 19: | ||
- mosquitto:/mosquitto/config | - mosquitto:/mosquitto/config | ||
zigbee2mqtt: | zigbee2mqtt: | ||
| − | image: koenkk/zigbee2mqtt: | + | image: koenkk/zigbee2mqtt:2.2.1 |
volumes: | volumes: | ||
- zigbee2mqtt:/app/data | - zigbee2mqtt:/app/data | ||
| Line 30: | Line 31: | ||
- TZ | - TZ | ||
hass: | hass: | ||
| − | image: homeassistant/home-assistant: | + | image: homeassistant/home-assistant:2025.3.2 |
restart: unless-stopped | restart: unless-stopped | ||
network_mode: host | network_mode: host | ||
| Line 37: | Line 38: | ||
- /etc/localtime:/etc/localtime | - /etc/localtime:/etc/localtime | ||
- /run/dbus:/run/debus:ro | - /run/dbus:/run/debus:ro | ||
| + | - hass_media:/media | ||
node-red: | node-red: | ||
| − | image: srakrn/node-red-with-modules: | + | image: srakrn/node-red-with-modules:20250420-it1 |
restart: unless-stopped | restart: unless-stopped | ||
network_mode: host | network_mode: host | ||
volumes: | volumes: | ||
- nodered:/data | - nodered:/data | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</pre> | </pre> | ||
Revision as of 13:15, 25 April 2025
Just replace Node-RED image with the vanilla one if you are not installing extra NPM libs:
version: '3.2'
volumes:
zigbee2mqtt:
mosquitto:
hass:
nodered:
hass_media:
services:
mosquitto:
image: eclipse-mosquitto:2.0.18
restart: unless-stopped
network_mode: host
volumes:
- mosquitto:/mosquitto/config
zigbee2mqtt:
image: koenkk/zigbee2mqtt:2.2.1
volumes:
- zigbee2mqtt:/app/data
- /run/udev:/run/udev:ro
devices:
- /dev/serial/by-id/usb-1a86_USB_Single_Serial_5322028960-if00:/dev/ttyACM0
restart: unless-stopped
network_mode: host
privileged: true
environment:
- TZ
hass:
image: homeassistant/home-assistant:2025.3.2
restart: unless-stopped
network_mode: host
volumes:
- hass:/config
- /etc/localtime:/etc/localtime
- /run/dbus:/run/debus:ro
- hass_media:/media
node-red:
image: srakrn/node-red-with-modules:20250420-it1
restart: unless-stopped
network_mode: host
volumes:
- nodered:/data