cancel
Showing results for 
Search instead for 
Did you mean: 

Mock service address inside docker compose

superman11
Frequent Visitor

Mock service address inside docker compose

Hello,

my problem look like this: I have docker compose with mocked service and I'm using it in java springboot application. When application is outside of this docker compose I'm using url address like http://CPX-WY24SD3:8088/mockProductInterfaceSoapBinding and It's working, but when I add java application to this docker-compose this link is not working. How is this address looking inside docker compose? Is there way to check it? Mapping it docker compose this way: http://mockedProductService:8088/mockProductInterfaceSoapBinding  is not working.

2 REPLIES 2
nmrao
Community Hero

Re: Mock service address inside docker compose

What does it show the output for below command when docker container is running?
"docker ps"


Regards,
Rao.
richie
Community Hero

Re: Mock service address inside docker compose

Hey @superman11

I thought id already answered this, so sorry about that.

I might be able to help....im using docker compose but not with soapui, but with REST-assured.

When you say "have docker compose with mocked service and I'm using it in java springboot application" can you clarify exactly what you mean?

Docker compose is the app that organises the running of multiple docker images within docker containers all at once.

So for example. At work all the differenr components/services i need running to support my testing of an individual microservices component runs in individual docker containers. So when i start my services what i actually do is run a shell script that spools up those 15 services within their individual containers.

Do you run in a vpn?
Do you need tunnels?
Etc.? Etc.?

The more info you give the more likely i'll be able to help.

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
New Here?
Join us and watch the welcome video:
Top Kudoed Authors