Hello,
I don’t believe it’s possible to do that with the docker executor. Someone else may chime in to correct me. But it sounds like at the very least you’ll need to use the machine executor. You may not need to use docker-compose. You could spin up the server with a background command, and also spin up the docker container. You might need to setup a poll step to make sure the server is ready before running the docker container. Then just run the docker image with docker run. The machine executor will net you avoid the networking limitations of the docker executor.