Update dockge-install.sh

tweak `homeassistant/compose.yaml`
This commit is contained in:
tteckster 2024-02-03 14:02:13 -05:00 committed by GitHub
parent 5ed56e64d7
commit f4b7aa6e4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 10 deletions

View File

@ -62,19 +62,18 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
msg_info "Adding Home Assistant compose.yaml" msg_info "Adding Home Assistant compose.yaml"
mkdir -p /opt/stacks/homeassistant mkdir -p /opt/stacks/homeassistant
cat <<EOF >/opt/stacks/homeassistant/compose.yaml cat <<EOF >/opt/stacks/homeassistant/compose.yaml
version: "3.3" version: "3"
services: services:
home-assistant: homeassistant:
container_name: homeassistant container_name: homeassistant
privileged: true
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /dev:/dev
- /etc/localtime:/etc/localtime:ro
- ./config:/config
network_mode: host
image: ghcr.io/home-assistant/home-assistant:stable image: ghcr.io/home-assistant/home-assistant:stable
volumes:
- ./config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
restart: unless-stopped
privileged: true
network_mode: host
EOF EOF
msg_ok "Added Home Assistant compose.yaml" msg_ok "Added Home Assistant compose.yaml"
fi fi