Add healthcheck for homeassisstant
This commit is contained in:
@@ -13,3 +13,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ${APPDATA_PATH}/homeassistant/config:/config # Configuration files
|
- ${APPDATA_PATH}/homeassistant/config:/config # Configuration files
|
||||||
- /etc/localtime:/etc/localtime:ro # Sync host timezone for proper logging
|
- /etc/localtime:/etc/localtime:ro # Sync host timezone for proper logging
|
||||||
|
healthcheck:
|
||||||
|
test: "curl --connect-timeout 10 --silent -f http://127.0.0.1:8123/ || exit 1"
|
||||||
|
interval: 45s
|
||||||
|
timeout: 30s
|
||||||
|
retries: 3
|
||||||
|
Reference in New Issue
Block a user