Last active
December 19, 2020 06:58
-
-
Save yassineselmi/7e76851758fc58480be1ec6537cccd9b to your computer and use it in GitHub Desktop.
Home Assistant + SWAG + NodeRED + Mosquitto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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