I have a docker file that runs some integration tests between two containers. It looks a bit like this:
version: '3' services: test_client: image: client:latest depends_on: - test_server command: bash -c "run_test.sh -p 80" test_server: image: server:latest
test_server launches a web server on port 80, but that same port is already exposed within
test_client (I don't have control over the part of the
client:latest image where the port is exposed. I tried using the
port: 8080:80 to forward port 80 to 8080 in the server, but that only changes the port exposed on the host, not within the docker environment.
How can I connect
test_server in such a scenario?