Skip to content

Commit

Permalink
Update docker.md
Browse files Browse the repository at this point in the history
Added example about how to mount the files and mappings from local using Dockercompose
  • Loading branch information
eliasnogueira authored Oct 25, 2023
1 parent 72fc436 commit 65692a9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion _docs/standalone/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"]
```

0 comments on commit 65692a9

Please sign in to comment.