Add healthcheck to docker compose

This commit is contained in:
iamdoubz committed 2024-03-27 14:04:44 -05:00
1 parent c48982efb9
commit ea25a92233
4 files changed
+21 -2

No files matched your search

+3
View File
@@ -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` 3. `balena push Raspberry3B01`
## Changelog ## Changelog
### Version 1.9.9
**2024-03-27**:
- Add wget based healthcheck to containers
### Version 1.9.8 ### Version 1.9.8
**2024-03-26**: **2024-03-26**:
- Upgrade HA to 2024.3.3 - Upgrade HA to 2024.3.3
+1 -1
View File
@@ -1 +1 @@
1.9.8 1.9.9
+1 -1
View File
@@ -27,4 +27,4 @@ data:
applicationEnvironmentVariables: applicationEnvironmentVariables:
- VERIFY_HOSTNAME: - VERIFY_HOSTNAME:
- ALLOWED_NETWORKS: - ALLOWED_NETWORKS:
version: 1.9.8 version: 1.9.9
+16
View File
@@ -13,12 +13,20 @@ services:
volumes: volumes:
- 'config:/config' - 'config:/config'
restart: always restart: always
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8123/ || exit 1
interval: 5m
timeout: 3s
mqtt: mqtt:
build: build:
context: mqtt context: mqtt
ports: ports:
- '1883:1883' - '1883:1883'
restart: always restart: always
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:1883/ || exit 1
interval: 5m
timeout: 3s
depends_on: depends_on:
- homeassistant - homeassistant
volumes: volumes:
@@ -26,6 +34,10 @@ services:
hass-configurator: hass-configurator:
image: 'causticlab/hass-configurator-docker:latest' image: 'causticlab/hass-configurator-docker:latest'
restart: always restart: always
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:3218/ || exit 1
interval: 5m
timeout: 3s
depends_on: depends_on:
- homeassistant - homeassistant
ports: ports:
@@ -45,5 +57,9 @@ services:
volumes: volumes:
- config:/conf - config:/conf
restart: always restart: always
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:5050/ || exit 1
interval: 5m
timeout: 3s
depends_on: depends_on:
- homeassistant - homeassistant