Fix broken CI related to postgres image

Problem

As of the last hour or so, we are seeing errors like the following in CI:

PG::ConnectionBad: could not translate host name "postgres" to address: Name or service not known?

Example: https://gitlab.com/gitlab-org/customers-gitlab-com/pipelines/118021482

Proposal

The underlying problem and fix has already been applied for gitlab with gitlab!25274 (merged). A similar fix would probably solve it for customers.gitlab.com.

Result

A functional CI.

Next steps (if any)

How will we measure success?