diff --git a/README.md b/README.md index eaead62..15c5976 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ I forgot the password to my old HA instance, so I bought a nice, new, and shiny 3. `balena push Raspberry3B01` ## Changelog +### Version 1.9.9 +**2024-03-27**: + - Add wget based healthcheck to containers ### Version 1.9.8 **2024-03-26**: - Upgrade HA to 2024.3.3 diff --git a/VERSION b/VERSION index 66beabb..6ae756c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.9.8 +1.9.9 diff --git a/balena.yml b/balena.yml index a89d7dd..44a254e 100644 --- a/balena.yml +++ b/balena.yml @@ -27,4 +27,4 @@ data: applicationEnvironmentVariables: - VERIFY_HOSTNAME: - ALLOWED_NETWORKS: -version: 1.9.8 +version: 1.9.9 diff --git a/docker-compose.yml b/docker-compose.yml index 0177a25..8c3ae13 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,12 +13,20 @@ services: volumes: - 'config:/config' restart: always + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:8123/ || exit 1 + interval: 5m + timeout: 3s mqtt: build: context: mqtt ports: - '1883:1883' restart: always + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:1883/ || exit 1 + interval: 5m + timeout: 3s depends_on: - homeassistant volumes: @@ -26,6 +34,10 @@ services: hass-configurator: image: 'causticlab/hass-configurator-docker:latest' restart: always + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:3218/ || exit 1 + interval: 5m + timeout: 3s depends_on: - homeassistant ports: @@ -45,5 +57,9 @@ services: volumes: - config:/conf restart: always + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:5050/ || exit 1 + interval: 5m + timeout: 3s depends_on: - homeassistant \ No newline at end of file