Home Explore Blog CI



docker

1st chunk of `content/includes/compose/services-healthcheck.md`
96fc24d2016cbc91c54e76c9ec6d2308c3462c6b693ed9510000000100000144
The `healthcheck` attribute declares a check that's run to determine whether or not the service containers are "healthy". It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction
set by the service's Docker image. Your Compose file can override the values set in the Dockerfile. 

Title: Healthcheck Attribute in Compose Files
Summary
The `healthcheck` attribute in a Compose file defines a check to determine the health of service containers, similar to the HEALTHCHECK instruction in a Dockerfile. Compose files can override healthcheck values defined in the Dockerfile.