-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerized wiremock.net does not read static mappings #23
Comments
Hello @muhammadahmadsaeed, Your question seems related to #10 But sending that flag should be possible I think by using
But I'm not sure if this works. |
@StefH Thank you for the response. I was able to create this docker compose file worked successfully. version: "3.7"
services:
wiremock:
image: sheyenrath/wiremock.net
ports:
- "9091:80"
volumes:
- ./wiremock/mappings:/app/__admin/mappings
command: ["dotnet", "wiremock-net.dll", "--Urls", "http://*:80", "--ReadStaticMappings", "true", "--WireMockLogger", "WireMockConsoleLogger"] Note: All the json files should be in ./wiremock/mappings host directory as per above volume mapping. |
Thank you very much for this example. I need to try this myself and then I will add this information to the Wiki. |
Wiki page has been added: https://github.com/WireMock-Net/WireMock.Net-docker/wiki/Docker-Compose |
I am trying to run wiremock .net in docker but it is not reading static files. How to send ReadStaticMappings flag in docker compose?
The text was updated successfully, but these errors were encountered: