If the check is productive the container is going to be marked as healthy. Until then it's going to continue to be within an unhealthy state.
Database stability is especially significant, because databases are https://www.ralantech.com/postgresql-database-health-check-consulting-service/