Docker implementation of the mockit project (https://github.com/boyney123/mockit)
1.5K
MockIt gives you an interface to configure and create REAL mocked endpoints for your applications. Whilst you wait for APIS to be built use MockIt to talk to a real service.
First, pull the image. Then, you must run the container
docker run -e MOCKIT_MODE=<server|client> kudaw/mockit:<tag>
The docker-compose or stack file must be set
services:
mockit-server:
image: kudaw/mockit
environment:
MOCKIT_MODE: 'server'
networks:
- docker_network
ports:
- 34000:4000
- 33000:3000
volumes:
- config:/usr/src/mockit-server/configuration/
- config:/usr/src/mockit-routes/configuration/
mockit-client:
image: kudaw/mockit
environment:
MOCKIT_MODE: 'client'
REACT_APP_MOCKIT_SERVER_URL: 'http://127.0.0.1:33000'
REACT_APP_MOCKIT_API_URL: 'http://127.0.0.1:34000'
networks:
- docker_network
ports:
- 35000:3000
volumes:
- config:/usr/src/mockit-client/src/config/
volumes:
config:
networks:
docker_network:
driver: bridge
#driver: overlay
external: false
name: docker_network
attachable: true
Set Mode: client|server
Default: server
Server URL
Default: http://127.0.0.1:33000
API URL
Default: http://127.0.0.1:34000
MIT
Content type
Image
Digest
sha256:b6555fcae…
Size
293.7 MB
Last updated
3 months ago
docker pull kudaw/mockit