William-Yeh / docker-json-server

A minimal JSON Server image for Docker - Get a full fake REST API with zero coding in less than 30 seconds (seriously)

Home Page:https://hub.docker.com/r/williamyeh/json-server/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerized JSON Server

Circle CI Build Status

Summary

Repository name in Docker Hub: williamyeh/json-server

This repository contains Dockerized JSON Server, published to the public Docker Hub via automated build mechanism.

Configuration

This docker image contains the following software stack:

  • Alpine 3

  • Node.js 10

  • JSON Server

Total image size is less than 30 MB.

Dependencies

History

  • 1.0 - Initial release.
  • 1.1 - Updated base image and json-server version.
  • 1.1.1 - Add '--host' cli arguments for convenience.

Installation

$ docker pull williamyeh/json-server

Usage

Show usage

$ docker run --rm williamyeh/json-server

Server example

$ docker run  \
      -p 3000:3000  -v `pwd`:/data  \
      williamyeh/json-server        \
      --watch db.json

More examples

Most examples documented in JSON Server project site will work.

About

A minimal JSON Server image for Docker - Get a full fake REST API with zero coding in less than 30 seconds (seriously)

https://hub.docker.com/r/williamyeh/json-server/


Languages

Language:Dockerfile 100.0%