When working with containers it is often necessary to need a service to be up and running before the application itself. This is specially true in CI environments, where you can't just spin up the application again.
This Postgres image, basically the same as healthcheck/postgres,
leverages the HEALTHCHECK
directive.
The only difference between this and the oficial healtcheck image is that we specify a version for Postgres instead of relying on latest
.