Skip to content

Can't access docker compose service in a job #26650

Discussion options

You must be logged in to vote

Your test runs in another container so 127.0.0.1 is that container, which doesn’t have any running service. I see three ways to fix this (pick one):

  • Drop the test container. Instead use actions/setup-node and run the tests directly on the runner VM.
  • Access the IP address of the runner VM from the test container, that way the published port should work.
  • Put the test container onto the same network as the Docker Compose containers and access them by name.

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@jsoneaday
Comment options

@jsoneaday
Comment options

@airtower-luna
Comment options

@jsoneaday
Comment options

@airtower-luna
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants