This project try to reproduce the issue connection from docker image to localhost
Make sure you have maven toolchain for Amazon Java 11 and Docker.
Let's validate without docker
- Run
local-rest-service/com.example.localrestservice.LocalRestServiceApplication
- go to http://localhost:8080 and http://localhost:8080/abc
- Run
initiator/com.example.initiator.InitiatorApplication
- go to http://localhost:8082 and http://localhost:8082/qwe
Now you should see result from both services. Let's run initiator in Docker
- strop initiator/com.example.initiator.InitiatorApplication
cd initiator
&&mvn clean package
docker build -t initiator .
docler images
and just check that you have initiatordocker-compose up
- go to http://localhost:8082 and http://localhost:8082/qwe