34 lines
933 B
YAML
34 lines
933 B
YAML
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
|
|
|