home assistant
This commit is contained in:
parent
ccba2fd427
commit
75594805e5
4 changed files with 75 additions and 0 deletions
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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue