Should the check is thriving the container are going to be marked as healthy. Until then it's going to keep on being in an unhealthy condition.
A database is the guts of the software, and you'd like it to work https://www.ralantech.com/postgresql-database-health-check-consulting-service/