Comments (2)
This is the Docker Componse
configuration file I'm using:
version: "3.8"
networks:
global-network:
driver: bridge
external: false
name: mountebank-network
services:
mountebank:
command: ["start", "--allow-injection", "--configfile", "/app/config/imposters.ejs", "--loglevel", "debug"]
container_name: mountebank
image: docker.io/bbyars/mountebank:2.8.1 # https://hub.docker.com/r/bbyars/mountebank/
networks:
- global-network
ports:
- "8081:8081"
- "2525:2525"
user: $USER_ID:$GROUP_ID
volumes:
- ./config/:/app/config/
# /app/config/imposters.ejs
{
"imposters": [
<%- include("path/to/your/imposter-configuration.json") -%>
]
}
...and I start the whole thing with: GROUP_ID="$(id --group)" USER_ID="$(id --user)" docker compose up --detach --remove-orphans
from mountebank.
Removing the user
key in the Docker Compose
configuration solves the problem, but it creates another one because the mounted volume now changes the ownership of the file(s) in the host 😬
from mountebank.
Related Issues (20)
- mb replay not removing proxy as expected HOT 1
- API contract missing ignore field from predicate generators. HOT 1
- ProxyOnce Mode to Consider Responses Saved in Data Dir HOT 1
- deleted log file is not recreated, erasing lines from log file stops logging
- mountebank performance is horrible due to calling require inside http server hot paths HOT 6
- mountebank issue when the mock is >35000 line HOT 6
- Getting error trying to create a mock with mountebank HOT 1
- Unable to use different type other than string(s) when injecting responses via CSV lookup
- Add binary body representation for http(s) requests for /imposters/{key} endpoint
- Stable release with ARM support
- Master commits break projects using the latest version HOT 3
- Creating & deleting imposters in a load balanced setup HOT 1
- Expect field in the header HOT 1
- Mountebank doesn't show imposters metrics
- QUESTION: How to copy (behavior) integer value from path to body field? HOT 1
- ee key too small HOT 6
- How to close tcp connection by Imposter HOT 1
- [Feature Request] Allow mountebank to send back statusMesage
- Mongodb as log transport
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mountebank.