Skip to content

Connect Postgres service with custom container image #25693

Discussion options

You must be logged in to vote

Your workflow is now running in a container of it’s own, next to the postgres container. So the port mapping to the runner VM doesn’t do anything any more (because it affects the host, not Docker containers on it).

The job and service containers get attached to the same Docker network, so you should only need to change POSTGRES_HOST to postgres (the name of the service container) and Docker’s DNS should do the rest.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@FerroEduardo
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
3 participants