Sign inSign up

kudaw/mockit

By kudaw

•Updated 3 months ago

Docker implementation of the mockit project (https://github.com/boyney123/mockit)

Image
0

1.5K

kudaw/mockit repository overview

⁠Mockit

⁠Tags

  • 1.1.0
    • Initial release
⁠What is Mockit?

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.

⁠How to use this image

First, pull the image. Then, you must run the container

docker run -e MOCKIT_MODE=<server|client> kudaw/mockit:<tag>
⁠... via docker stack deploy or docker-compose

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
⁠Environment Variables

⁠MOCKIT_MODE

Set Mode: client|server

Default: server

⁠REACT_APP_MOCKIT_SERVER_URL

Server URL Default: http://127.0.0.1:33000

⁠REACT_APP_MOCKIT_API_URL

API URL Default: http://127.0.0.1:34000

⁠License

MIT

Tag summary

Content type

Image

Digest

sha256:b6555fcae…

Size

293.7 MB

Last updated

3 months ago

docker pull kudaw/mockit