Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening to other than localhost #16

Open
LoicC04 opened this issue Dec 12, 2019 · 1 comment
Open

Opening to other than localhost #16

LoicC04 opened this issue Dec 12, 2019 · 1 comment

Comments

@LoicC04
Copy link

LoicC04 commented Dec 12, 2019

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"
@isdzulqor
Copy link

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 🌹

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants