Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
(vimagick/json-server) local host port binding #88
Comments
@liquidcowgithub Thanks; I needed that as well ... |
Need it to me as well, that would be great help if you can guide me |
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
The text was updated successfully, but these errors were encountered: