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

(vimagick/json-server) local host port binding #88

Closed
liquidcowgithub opened this issue Aug 14, 2018 · 2 comments
Closed

(vimagick/json-server) local host port binding #88

liquidcowgithub opened this issue Aug 14, 2018 · 2 comments

Comments

@liquidcowgithub
Copy link

@liquidcowgithub liquidcowgithub commented Aug 14, 2018

Hi :)

The sample docker-compose.yml in the docs for vimagick/json-server did not work for me out the box. Was not able to hit http://localhost:3000 (the json-server home page)

Not sure if this is an issue directly related to the setup of this image, or the setup of docker environment running the vimagick/json-server container?

Modifying the docker-compose.yml to add the --host 0.0.0.0 flag to json-server fixed this:

json-server:
image: vimagick/json-server
command: -w db.json --host 0.0.0.0
ports:
- "3000:3000"
volumes:
- ./db.json:/app/db.json
restart: always

OS: OSX 10.13.6
Docker engine version: 18.06.0-ce
Compose version: 1.22.0

@tvld
Copy link

@tvld tvld commented Sep 5, 2018

@liquidcowgithub Thanks; I needed that as well ...

@tulasirm
Copy link

@tulasirm tulasirm commented Oct 28, 2018

Need it to me as well, that would be great help if you can guide me

@vimagick vimagick closed this in 8277c9e Mar 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.