Skip to content

Instantly share code, notes, and snippets.

@eliasnogueira
Last active October 23, 2023 09:37
Show Gist options
  • Save eliasnogueira/a59cf85ce38a8c2cdf166a53d01763bb to your computer and use it in GitHub Desktop.
Save eliasnogueira/a59cf85ce38a8c2cdf166a53d01763bb to your computer and use it in GitHub Desktop.
Example of Wiremock docker usage mapping the internal files to the container
version: '3.9'
services:
wiremock:
image: "wiremock/wiremock:latest"
container_name: wiremock-credit-restriction-api
ports:
- "8087:8080"
volumes:
# copy the local Wiremock files (__files and mappings folder) into the container
- ./__files:/home/wiremock/__files
- ./mappings:/home/wiremock/mappings
entrypoint: ["/docker-entrypoint.sh", "--global-response-templating", "--disable-gzip", "--verbose"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment