docker-json-server icon indicating copy to clipboard operation
docker-json-server copied to clipboard

Opening to other than localhost

Open LoicC04 opened this issue 6 years ago • 1 comments

I had an issue when using the default configuration threw a Docker Swarm. I couldn't access the services becaus json-server was listening only to localhost.

Could you bring -H 0.0.0.0 on the run.sh by default so others won't have the same problem ?

args="$@ -H 0.0.0.0 -p 80"

LoicC04 avatar Dec 12 '19 16:12 LoicC04

Hi @LoicC04 @Jehadnasser

I just created another version of docker-json-server. It comes with much flexibility just like json-server as CLI. And also it's the last update.

It might be helpful for you 🌹

isdzulqor avatar Oct 12 '21 10:10 isdzulqor