Healthcheck¶
This docker container includes the ability to run health checks between the container api and outside services such as Portainer, or any other app that has the ability to query the endpoint api/health
.
API¶
This container includes the ability to run health checks utilizing the built-in API. You can directly access the health check and view a json formatted result with the url https://tvapp2.domain.lan/api/health
Numerous aliases have been added; you can use any of the following URLs to access the same health check results as they go to the same endpoint:
Portainer¶
To run a health check between TVApp2 and Portainer, apply the following lines of code to your TVApp2 docker-compose.yml
. Two examples have been provided, you can use either one; wget
or curl
:
Web Interface¶
The TVApp2 web interface is equip with its own health check which is ran every 10 minutes
by default. Users will notice a health indicator in the top right of the header navigation bar which is represented by the icon.
When the health check is ran every 10 minutes; a toast notification will appear in the lower-right side of the page:

Health Check Duration¶
1.4.0
600000
By default, a health check between the TVApp2 container and the web interface is done every 10 minutes
, but you can change this duration to something less or more. Be aware that if you set the time too low, you will constantly be spammed with toast notifications.
To change the health check delay, add the environment variable HEALTH_TIMER
to your TVApp2 docker-compose.yml
. Duration is in milliseconds.
Defines how often to perform health checks between the container and the web interface. Time is in milliseconds.
Default value is600000
(10 minutes)
HEALTH_TIMER Value | Delay Between Checks |
---|---|
HEALTH_TIMER=300000 |
5 minutes |
HEALTH_TIMER=600000 |
10 minutes |
HEALTH_TIMER=1200000 |
20 minutes |
HEALTH_TIMER=1800000 |
30 minutes |
HEALTH_TIMER=3600000 |
1 hour |