Also for completeness this is my stack I am running
version: '3'
services:
portainer:
container_name: portainer
image: portainer/portainer
volumes:
- /home/hass/svr/docker/portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9000:9000"
homeassistant:
container_name: home-assistant
restart: unless-stopped
image: homeassistant/home-assistant
volumes:
- /home/hass/svr/docker/hass-config:/config
- /etc/localtime:/etc/localtime:ro
- /home/hass/svr/docker/hass_media:/media
network_mode: host
privileged: true
nodered1:
container_name: node-red-1
restart: unless-stopped
image: nodered/node-red-docker
depends_on:
- "homeassistant"
user: root
volumes:
- /home/hass/svr/docker/node-red-1/user:/data
- /etc/localtime:/etc/localtime:ro
ports:
- "1880:1880"
letsencrypt:
image: linuxserver/letsencrypt
container_name: letsencrypt
restart: unless-stopped
cap_add:
- NET_ADMIN
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/hass/svr/docker/letsencrypt/config:/config
environment:
- PGID=1000
- PUID=1000
- EMAIL=removed
- URL=removed
- SUBDOMAINS=home,port,nred
- VALIDATION=http
- TZ=removed
ports:
- "80:80"
- "443:443"