How to provide access to internet from nodejs docker container

May 17, 2018 59 views
Docker Ubuntu

Hi, I have a nodejs docker containers running on Docker one click app ubuntu container. I have configured Traefik proxy to route HTTPS traffic. I now wish to connect using nodejs Elasticsearch.js library to hosted ES instance on ObjectRocket. I am not able to connect as it throws authentication error at elasticsearch.js.

I think the issue is with docker nodejs route not able to reach to ES instance on ObjectRocket as outbound https is not permitted by Docker container.

How should I resolve this issue ?

Cheers,
Vinayak

Be the first one to answer this question.