'How to pass localhost address to Tyk target URL?
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?
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | maantarng |