Docker Community Forums

Share and learn in the Docker community.

How to send request from container which has not internet access with nginx in docker

docker

(Mojtabanaserei) #1

hi
Using micro service isn’t easy for me, unfortunately :frowning_face:. I have a problem to use external api in my services.
Considering I need to connect to the google Recaptcha, but I can’t, because my server is dockeriz.

Although I used a proxy which is my Nginix container but I have an error, how can I fix it ? by the way if I don’t give internet to the elixir html container, it won’t be able to connect to google Recapcha api, but I need to isolate this without internet, because there is a nginx proxy.

and my second problem is how I can use external api in my private microservices behind my api gate way. I don’t want to give an internet to the private container and I need to use a safe proxy.

Thank you