Repository name in Docker Hub: williamyeh/json-server
This repository contains Dockerized JSON Server, published to the public Docker Hub via automated build mechanism.
This docker image contains the following software stack:
-
Alpine 3
-
Node.js 10
-
JSON Server
Total image size is less than 30 MB.
- 1.0 - Initial release.
- 1.1 - Updated base image and json-server version.
- 1.1.1 - Add '--host' cli arguments for convenience.
$ docker pull williamyeh/json-server
$ docker run --rm williamyeh/json-server
$ docker run \
-p 3000:3000 -v `pwd`:/data \
williamyeh/json-server \
--watch db.json
Most examples documented in JSON Server project site will work.