home assistant

This commit is contained in:
mini-pc-01 2026-02-08 21:09:34 +01:00
parent ccba2fd427
commit 75594805e5
4 changed files with 75 additions and 0 deletions

4
.gitignore vendored
View file

@ -17,6 +17,10 @@
/Containers/Navidrome/data/* /Containers/Navidrome/data/*
!/Containers/Navidrome/data/navidrome.toml !/Containers/Navidrome/data/navidrome.toml
!/Containers/HomeAssistant/config/
/Containers/HomeAssistant/config/*
!/Containers/HomeAssistant/config/configuration.yaml
# Scripts # Scripts
!/Scripts/* !/Scripts/*

View file

@ -0,0 +1,34 @@
services:
home-assistant-ts:
image: tailscale/tailscale
container_name: home-assistant-ts
cap_add:
- net_admin
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- ./tailscale/state:/var/lib/tailscale
- ./serveconfig:/config
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_EXTRA_ARGS=--advertise-tags=tag:home-assistant --reset
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve-config.json
- TS_USERSPACE=false
hostname: home
restart: unless-stopped
home-assistant:
container_name: home-assistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
restart: unless-stopped
network_mode: service:home-assistant-ts
environment:
TZ: Europe/France

View file

@ -0,0 +1,18 @@
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- 100.64.0.0/10

View file

@ -0,0 +1,19 @@
{
"TCP": {
"443": {
"HTTPS": true
}
},
"Web": {
"${TS_CERT_DOMAIN}:443": {
"Handlers": {
"/": {
"Proxy": "http://127.0.0.1:8123"
}
}
}
},
"AllowFunnel": {
"${TS_CERT_DOMAIN}:443": false
}
}