dbpedia-spotlight / spotlight-docker

Docker containers for DBpedia Spotlight
72 stars 41 forks source link

Listening on Localhost only #12

Closed antoine-collet closed 7 years ago

antoine-collet commented 7 years ago

Hello, I was wondering why the service was listening only on localhost instead of 0.0.0.0 ? As it is a containerized version the service is only accessible from the container itself Thanks you

sandroacoelho commented 7 years ago

Hi @antoine-collet

I'm not a network expert, but as far as I know, when we use -p 2222:80 , we open a port that redirects all requests to the docker container. It means that you bind a listener to 0.0.0.0 or localhost. Also your have --net=host that creates a bridge with all opened ports available inside your container.

Hope it helps :)

clanstyles commented 7 years ago

I've confirmed that you do need to allow it to listen on 0.0.0.0. I couldn't access the container out side of a kubernetes cluster until I rebuilt the image and did.

sandroacoelho commented 7 years ago

Hi @clanstyles , @antoine-collet I have changed the script to bind the listener to 0.0.0.0. Hope it helps! btw: Docker HUB takes some hours to rebuild everything :+1:

Best,

antoine-collet commented 7 years ago

@sandroacoelho Thank you !