This website uses cookies to ensure you get the best experience.
Learn more.
A workflow uses a PostgreSQL service container and runs the test job directly on an ubuntu runner, not inside a job container. The service maps 5432:5432. How should the test process connect?
Published
- Connect from the runner-host process to localhost:5432 through the service port mapped to host port 5432.
- Remove the port mapping because the database image EXPOSE declaration publishes the host port.
- Connect to the service label postgres:5432 without publishing any port.
- Connect from a separate Docker container to its own localhost without joining the service network.
Comments — 0
Sign in to comment