81 lines
2.1 KiB
YAML
81 lines
2.1 KiB
YAML
services:
|
|
hass:
|
|
container_name: hass
|
|
image: ghcr.io/home-assistant/home-assistant:stable
|
|
volumes:
|
|
- $DATA/hass:/config
|
|
- /etc/localtime:/etc/localtime:ro
|
|
networks:
|
|
- smarthome
|
|
- external
|
|
restart: unless-stopped
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.hass.rule=Host(`hass.bhasher.com`)"
|
|
- "traefik.http.routers.hass.entrypoints=internalsecure"
|
|
- "traefik.http.services.hass.loadbalancer.server.port=8123"
|
|
- "traefik.http.routers.hass.tls=true"
|
|
- "traefik.http.routers.hass.tls.certresolver=http"
|
|
depends_on:
|
|
- authelia
|
|
- traefik
|
|
|
|
mosquitto:
|
|
container_name: mosquitto
|
|
image: eclipse-mosquitto:latest
|
|
volumes:
|
|
- $CONFIG/smarthome/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
|
- $DATA/mosquitto/data:/mosquitto/data
|
|
- $DATA/mosquitto/passwordfile:/mosquitto/passwordfile
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- 1883:1883
|
|
- 9001:9001
|
|
networks:
|
|
- smarthome
|
|
- external
|
|
restart: unless-stopped
|
|
|
|
zigbee2mqtt:
|
|
container_name: zigbee2mqtt
|
|
restart: unless-stopped
|
|
image: koenkk/zigbee2mqtt:latest
|
|
volumes:
|
|
- $DATA/zigbee2mqtt:/app/data
|
|
- /run/udev:/run/udev:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
devices:
|
|
- /dev/ttyACM0:/dev/ttyACM0
|
|
networks:
|
|
- smarthome
|
|
depends_on:
|
|
- mosquitto
|
|
|
|
nodered:
|
|
container_name: nodered
|
|
restart: on-failure:5
|
|
image: nodered/node-red:latest
|
|
volumes:
|
|
- $DATA/nodered:/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
networks:
|
|
- smarthome
|
|
- external
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.nodered.rule=Host(`nodered.bhasher.com`)"
|
|
- "traefik.http.routers.nodered.entrypoints=internalsecure"
|
|
- "traefik.http.services.nodered.loadbalancer.server.port=1880"
|
|
- "traefik.http.routers.nodered.tls=true"
|
|
- "traefik.http.routers.nodered.tls.certresolver=http"
|
|
- "traefik.http.routers.nodered.middlewares=authelia@docker"
|
|
depends_on:
|
|
- hass
|
|
|
|
|
|
networks:
|
|
smarthome:
|
|
external:
|
|
external: true
|
|
|