home assistant
This commit is contained in:
parent
ccba2fd427
commit
75594805e5
4 changed files with 75 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -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/*
|
||||||
|
|
||||||
|
|
|
||||||
34
Containers/HomeAssistant/compose.yaml
Normal file
34
Containers/HomeAssistant/compose.yaml
Normal 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
|
||||||
|
|
||||||
18
Containers/HomeAssistant/config/configuration.yaml
Normal file
18
Containers/HomeAssistant/config/configuration.yaml
Normal 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
|
||||||
|
|
||||||
19
Containers/HomeAssistant/serveconfig/serve-config.json
Normal file
19
Containers/HomeAssistant/serveconfig/serve-config.json
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue