How to do a curl request in CircleCI to a running docker-compose network?

Viewed 18

I'm trying to setup a CI environment on CircleCi with a database (postgres) and a pgAdmin4 control client, when doing it locally and doing a curl request to the mapped port (localhost8082) it redirects to the login page of pgamin4 as expected.

When doing it in the CI env curl keeps responding with connection refused. see full logs below. When I run docker ps in the Ci env i can see that the two containers are running and are mapped to the ports as specified.

docker-compose.yaml

circleci_config.yaml

basic script to execute docker-compose in the background and trying to connect to the server

Output in the CI env

0 Answers
Related