configure mountebank in a containerized cloud microservice

134 views
Skip to first unread message

Ajay Antony

unread,
Apr 7, 2022, 8:32:08 AM4/7/22
to mountebank-discuss
How to setup mountebank in a containerized cloud setup?

Rochit Sen

unread,
Apr 12, 2022, 9:52:43 PM4/12/22
to mountebank-discuss
What are you trying to do? Do you want to run Mountebank in a docker container out-of process and then use mountebank to provide you stub responses?
If you want to do the above, then create a `docker-compose.yml` with the following:

****
version: "3.9"
services:
  mountebank:
    container_name: mountebank
    image: bbyars/mountebank:latest
    ports:
    - 2525:2525
    - 3000:3000
    - 3100:3100
****    
The ports mapping for port 3000 and 3100 is just telling docker to allow request on these ports and send it to mountebank server which is running on port 2525.

Run a `docker-compose up` to start mountebank container.

Then you can call http://localhost:2525 and create imposters on the port 3000 and 3100 and get the responses back as you wish.

Cheers!

Rochit
Reply all
Reply to author
Forward
0 new messages