This project provides a simple configurable HTTP mock server.
https://github.com/rubs33/light-mock-server https://www.npmjs.com/package/light-mock-server
Example of use in docker-compose:
version: "3"
services:
mock1:
image: rubs33/light-mock-server
command: "--config='{\"routes\": [ {\"path\": \"/foo\", \"body\": \"bar\"} ]}'"
ports:
- 3000:3000
mock2:
image: rubs33/light-mock-server
command: "--config='{\"routes\": [ {\"path\": \"/bar\", \"body\": \"foo\"} ]}'"
ports:
- 3001:3000
mock3:
image: rubs33/light-mock-server
volumes:
- .:/tmp
command: "--file='/tmp/example.json'"
ports:
- 3002:3000
When you start docker-compose, you will be able to call:
Content type
Image
Digest
Size
24.5 MB
Last updated
about 8 years ago
docker pull rubs33/light-mock-server