Skip to content

Commit

Permalink
Convert to Traefik from NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
aneisch committed Dec 29, 2023
1 parent ea8465d commit 8e28ed8
Show file tree
Hide file tree
Showing 8 changed files with 457 additions and 150 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Build Status](https://github.com/aneisch/home-assistant-config/actions/workflows/check-ha-release-compatibility.yml/badge.svg)](https://github.com/aneisch/home-assistant-config/actions)
[![GitHub last commit](https://img.shields.io/github/last-commit/aneisch/home-assistant-config)](https://github.com/aneisch/home-assistant-config/commits/master)
[![GitHub commit activity](https://img.shields.io/github/commit-activity/y/aneisch/home-assistant-config)](https://github.com/aneisch/home-assistant-config/graphs/commit-activity)
[![HA Version](https://img.shields.io/badge/Running%20Home%20Assistant-2023.12.3%20(Latest)-brightgreen)](https://github.com/home-assistant/home-assistant/releases/latest)
[![HA Version](https://img.shields.io/badge/Running%20Home%20Assistant-2023.12.4%20(Latest)-brightgreen)](https://github.com/home-assistant/home-assistant/releases/latest)
<br><a href="https://www.buymeacoffee.com/aneisch" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-black.png" width="150px" height="35px" alt="Buy Me A Coffee" style="height: 35px !important;width: 150px !important;" ></a>


Expand Down Expand Up @@ -90,17 +90,17 @@ Entities in the [`remote`](https://www.home-assistant.io/components/remote) doma
Entities in the [`scene`](https://www.home-assistant.io/components/scene) domain | 2
Entities in the [`script`](https://www.home-assistant.io/components/script) domain | 42
Entities in the [`select`](https://www.home-assistant.io/components/select) domain | 3
Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 384
Entities in the [`sensor`](https://www.home-assistant.io/components/sensor) domain | 383
Entities in the [`siren`](https://www.home-assistant.io/components/siren) domain | 1
Entities in the [`sun`](https://www.home-assistant.io/components/sun) domain | 1
Entities in the [`switch`](https://www.home-assistant.io/components/switch) domain | 152
Entities in the [`switch`](https://www.home-assistant.io/components/switch) domain | 151
Entities in the [`timer`](https://www.home-assistant.io/components/timer) domain | 2
Entities in the [`tts`](https://www.home-assistant.io/components/tts) domain | 1
Entities in the [`update`](https://www.home-assistant.io/components/update) domain | 3
Entities in the [`vacuum`](https://www.home-assistant.io/components/vacuum) domain | 1
Entities in the [`weather`](https://www.home-assistant.io/components/weather) domain | 2
Entities in the [`zone`](https://www.home-assistant.io/components/zone) domain | 6
**Total state objects** | **1136**
**Total state objects** | **1134**
## The HACS integrations/plugins that I use:
**Appdaemon**:<br>
[aneisch/follow_me_appdaemon](https://github.com/aneisch/follow_me_appdaemon)<br>
Expand Down
55 changes: 50 additions & 5 deletions extras/docker-compose/homeassistant/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@ version: '3.2'

services:
homeassistant:
container_name: hass
container_name: homeassistant
image: ghcr.io/home-assistant/home-assistant:stable
labels:
com.centurylinklabs.watchtower.monitor-only: "true"
- com.centurylinklabs.watchtower.monitor-only=true
# HTTPS for CF
- traefik.enable=true
- traefik.http.routers.assist.entrypoints=websecure
- traefik.http.routers.assist.tls=true
- traefik.http.routers.assist.rule=Host(`assist.domain.com`)
- traefik.http.services.assist.loadbalancer.server.port=8123
- traefik.http.routers.assist.service=assist
# HTTP Local Only
- traefik.http.routers.assist_local.entrypoints=web
- traefik.http.routers.assist_local.rule=Host(`assist.home.domain.com`)
- traefik.http.routers.assist_local.service=assist
volumes:
- /opt/homeassistant:/config
- /opt/nginx-proxy-manager/database.sqlite:/tmp/database.sqlite
Expand Down Expand Up @@ -105,6 +116,18 @@ services:
environment:
- TZ=America/Chicago
restart: always
labels:
# HTTPS for CF
- traefik.enable=true
- traefik.http.routers.nodered.entrypoints=websecure
- traefik.http.routers.nodered.tls=true
- traefik.http.routers.nodered.rule=Host(`nodered.domain.com`)
- traefik.http.services.nodered.loadbalancer.server.port=1880
- traefik.http.routers.nodered.service=nodered
# HTTP Local Only
- traefik.http.routers.nodered_local.entrypoints=web
- traefik.http.routers.nodered_local.rule=Host(`nodered.home.domain.com`)
- traefik.http.routers.nodered_local.service=nodered
appdaemon:
container_name: appdaemon
#image: acockburn/appdaemon:4.0.5
Expand All @@ -124,8 +147,20 @@ services:
environment:
- TZ=America/Chicago
ports:
- '127.0.0.1:8888:8888' # Expose localhost only for Home Assistant
- '127.0.0.1:8888:8888' # Expose localhost only for Home Assistant rest_command
restart: always
labels:
# HTTPS for CF
- traefik.enable=true
- traefik.http.routers.appdaemon.entrypoints=websecure
- traefik.http.routers.appdaemon.tls=true
- traefik.http.routers.appdaemon.rule=Host(`appdaemon.domain.com`)
- traefik.http.services.appdaemon.loadbalancer.server.port=8888
- traefik.http.routers.appdaemon.service=appdaemon
# HTTP Local Only
- traefik.http.routers.appdaemon_local.entrypoints=web
- traefik.http.routers.appdaemon_local.rule=Host(`appdaemon.home.domain.com`)
- traefik.http.routers.appdaemon_local.service=appdaemon
thermostat_api_server:
container_name: thermostat_api_server
image: ghcr.io/aneisch/thermostat_api_server:latest
Expand All @@ -145,8 +180,6 @@ services:
image: zwavejs/zwavejs2mqtt:latest
#image: zwavejs/zwavejs2mqtt:sha-0a723f9 # 2.4.1
restart: always
#labels:
# com.centurylinklabs.watchtower.monitor-only: "true"
stop_signal: SIGINT
devices:
- '/dev/zwave:/dev/zwave'
Expand All @@ -157,6 +190,18 @@ services:
- '127.0.0.1:3000:3000' # port for zwave-js websocket server expose localhost only for Home Assistant
environment:
- TZ=America/Chicago
labels:
# HTTPS for CF
- traefik.enable=true
- traefik.http.routers.zwavejs.entrypoints=websecure
- traefik.http.routers.zwavejs.tls=true
- traefik.http.routers.zwavejs.rule=Host(`zwavejs.domain.com`)
- traefik.http.services.zwavejs.loadbalancer.server.port=8091
- traefik.http.routers.zwavejs.service=zwavejs
# HTTP Local Only
- traefik.http.routers.zwavejs_local.entrypoints=web
- traefik.http.routers.zwavejs_local.rule=Host(`zwavejs.home.domain.com`)
- traefik.http.routers.zwavejs_local.service=zwavejs
cellular_message_relay_sim7080g:
container_name: cellular_message_relay_sim7080g
image: ghcr.io/aneisch/cellular_message_relay:sim7080g
Expand Down
Loading

0 comments on commit 8e28ed8

Please sign in to comment.