Skip to content

Instantly share code, notes, and snippets.

@yassineselmi
Last active December 19, 2020 06:58
Show Gist options
  • Save yassineselmi/7e76851758fc58480be1ec6537cccd9b to your computer and use it in GitHub Desktop.
Save yassineselmi/7e76851758fc58480be1ec6537cccd9b to your computer and use it in GitHub Desktop.
Home Assistant + SWAG + NodeRED + Mosquitto
version: "3.8"
services:
proxy:
image: linuxserver/swag
container_name: proxy
restart: unless-stopped
depends_on:
- homeassistant
cap_add:
- NET_ADMIN
volumes:
- /etc/localtime:/etc/localtime:ro
- "./swag/config:/config"
environment:
- PGID=1000
- PUID=1000
- EMAIL=your-email-address # for self-signed certificates
- URL=mydomain.duckdns.org # your WAN domain name (ex: duckdns.org)
- VALIDATION=http
- TZ=America/Montreal
ports:
- "443:443"
homeassistant:
container_name: homeassistant
restart: unless-stopped
image: homeassistant/homeassistant:stable
volumes:
- "./homeassistant:/config"
- /etc/localtime:/etc/localtime:ro
- "./swag/config/keys/letsencrypt:/ssl"
environment:
- TZ="America/Montreal"
nodered:
container_name: nodered
image: nodered/node-red
restart: always
volumes:
- "./nodered:/data"
mqtt-broker:
container_name: mqtt-broker
image: eclipse-mosquitto
restart: always
volumes:
- "./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf"
- "./mosquitto/mosquitto.passwd:/mosquitto/config/mosquitto.passwd"
- "./mosquitto/data:/mosquitto/data"
- "./mosquitto/log/mosquitto.log:/mosquitto/log/mosquitto.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment