I am trying to run an integration test against my containers on gitlab.
To keep things as minimal as possible, here are the relevant parts of my .gitlab-ci.yml
image: ubuntu:latest
coverage:
stage: test
dependencies:
- build
services:
- postgres:latest
- registry.gitlab.com/username/project/image:latest
When I try and run the job, I get a container health check warning.
2019-06-06T02:13:34.508595817Z FATAL: No HOST or PORT found
Normally I would start my image with the standard docker run -p port:port image:version but I'm not sure how those options translate to gitlab services. How do I define the host and the port?