How to pass localhost address to Tyk target URL?

185 Views Asked by At

I have my Tyk components (Tyk Pro Demo from GitHub) running using Docker compose. When I create a simple API using some public APIs, like Pet Store Io, it works fine.

Now I have word press application running using Docker compose, and the Docker compose file is available here (https://docs.docker.com/samples/wordpress/). This application is running on http://localhost:8000.

However, when I pass this 'localhost:8000' to the target URL in Tyk API definition, and call it through Tyk, it show 'There was a problem proxying the request'.

Is there any setting/ method which can solve this problem?

1

There are 1 best solutions below

0
On

Actually when I referred to Docker documentation, I realized that I just need to put them in the same Docker network and it will be done.