From 65692a91acbd74401ea6a59f642bbd114e2eebb7 Mon Sep 17 00:00:00 2001 From: Elias Nogueira Date: Wed, 25 Oct 2023 19:05:40 +0200 Subject: [PATCH] Update docker.md Added example about how to mount the files and mappings from local using Dockercompose --- _docs/standalone/docker.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/_docs/standalone/docker.md b/_docs/standalone/docker.md index 8048eef4..2ebc00b4 100644 --- a/_docs/standalone/docker.md +++ b/_docs/standalone/docker.md @@ -103,7 +103,7 @@ ENTRYPOINT ["/docker-entrypoint.sh", "--global-response-templating", "--disable- Configuration in compose file is similar to Dockerfile definition -```YAML +```yaml # Sample compose file version: "3" services: @@ -113,4 +113,17 @@ services: entrypoint: ["/docker-entrypoint.sh", "--global-response-templating", "--disable-gzip", "--verbose"] ``` +You can also mount your local `__files` and `mappings` files into the container e.g: +```yaml +# Sample compose file +version: "3" +services: + wiremock: + image: "wiremock/wiremock:latest" + container_name: my_wiremock + volumes: + - ./__files:/home/wiremock/__files + - ./mappings:/home/wiremock/mappings + entrypoint: ["/docker-entrypoint.sh", "--global-response-templating", "--disable-gzip", "--verbose"] +```