homelab/bxl-shp/apps/docker-compose.smarthome.yaml

87 lines
2.3 KiB
YAML
Raw Permalink Normal View History

2023-09-26 09:53:42 +02:00
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
2023-09-26 09:53:42 +02:00
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"
2023-12-26 22:59:06 +01:00
- "com.centurylinklabs.watchtower.enable=true"
depends_on:
- authelia
- traefik
2023-09-26 09:53:42 +02:00
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
2023-12-26 22:59:06 +01:00
labels:
- "com.centurylinklabs.watchtower.enable=true"
2023-09-26 09:53:42 +02:00
networks:
- smarthome
- external
restart: unless-stopped
2023-09-26 09:53:42 +02:00
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
2023-12-26 22:59:06 +01:00
labels:
- "com.centurylinklabs.watchtower.enable=true"
2023-09-26 09:53:42 +02:00
networks:
- smarthome
depends_on:
- mosquitto
2023-09-26 09:53:42 +02:00
nodered:
container_name: nodered
restart: on-failure:5
2023-09-26 09:53:42 +02:00
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"
2023-12-26 22:59:06 +01:00
- "com.centurylinklabs.watchtower.enable=true"
depends_on:
- hass
2023-09-26 09:53:42 +02:00
networks:
smarthome:
external:
external: true