This repository contains a Docker configuration for setting up a mock JSON Server with json-server. json-server is a full fake REST API with zero coding in less than 30 seconds.
Clone this repository to your local machine:
git clone https://github.com/osoroed/json-server-docker.git
Navigate to the cloned directory:
cd json-server-docker
Run the Docker Compose command to start the JSON Server container:
docker-compose up -d
Access the JSON Server API via http://localhost:3535. The default db.json will be served as the API.
See the original json-server docs for further configuration options