diff --git a/bxl-rpi/apps/docker-compose.smarthome.yaml b/bxl-rpi/apps/docker-compose.smarthome.yaml new file mode 100644 index 0000000..ea2bdab --- /dev/null +++ b/bxl-rpi/apps/docker-compose.smarthome.yaml @@ -0,0 +1,39 @@ +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: on-failure + 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" + + 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 + ports: + - 1883:1883 + - 9001:9001 + networks: + - smarthome + - external + restart: on-failure + +networks: + smarthome: + external: + external: true + diff --git a/bxl-rpi/apps/docker-compose.tg2.yaml b/bxl-rpi/apps/docker-compose.tg2.yaml new file mode 100644 index 0000000..332da74 --- /dev/null +++ b/bxl-rpi/apps/docker-compose.tg2.yaml @@ -0,0 +1,4 @@ +services: + tg2: + container_name: tg2 + image: tg2:latest diff --git a/bxl-rpi/config/smarthome/mosquitto.conf b/bxl-rpi/config/smarthome/mosquitto.conf new file mode 100644 index 0000000..8a39f82 --- /dev/null +++ b/bxl-rpi/config/smarthome/mosquitto.conf @@ -0,0 +1,3 @@ +listener 1883 +allow_anonymous false +password_file /mosquitto/passwordfile