30 lines
713 B
YAML
30 lines
713 B
YAML
version: "3"
|
|
|
|
services:
|
|
server:
|
|
image: "ghcr.io/home-assistant/home-assistant:stable"
|
|
# user: "${UID}:${GID}"
|
|
hostname: smarthome.alm.lan
|
|
volumes:
|
|
- ./hass-data:/config
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /run/dbus:/run/dbus:ro
|
|
restart: always
|
|
environment:
|
|
- TZ="Australia/Brisbane"
|
|
# - PUID="${UID}"
|
|
# - PGID="${GID}"
|
|
labels:
|
|
- "io.portainer.accesscontrol.public"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:8123"] # 192.168.1.244 is my HA ip
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 6
|
|
privileged: true
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- NET_BIND_SERVICE
|
|
- SYS_ADMIN
|
|
network_mode: host
|