Skip to content

Docker Compose

Stef Heyenrath edited this page Oct 5, 2020 · 2 revisions

In case you want to use docker-compose to mount a volume to persist and read the static mapping .json files, use the following example:

docker-compose.yml

version: "3.8"

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"]

Pages

Docker Compose

Clone this wiki locally