feat: add Home Assistant service and host access network
This commit is contained in:
1 parent
9fd39c2c77
commit
18ecbb37c5
2 files changed
+37
-1
No files matched your search
@@ -0,0 +1,22 @@
|
||||
name: homeassistant
|
||||
services:
|
||||
homeassistant:
|
||||
image: ghcr.io/home-assistant/home-assistant:2026.9.2
|
||||
container_name: homeassistant
|
||||
volumes:
|
||||
- /srv/data/home-assistant:/config
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /run/dbus:/run/dbus:ro
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
network_mode: host
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 2G
|
||||
reservations:
|
||||
cpus: "0.2"
|
||||
memory: 512M
|
||||
stop_grace_period: 60s
|
||||
Reference in new issue
Block a user