savemightlife
savemightlife

Reputation: 129

How to run "--verbose" for wiremock in docker compose file

I want to get verbose output from mockwire when running in docker using docker compose file.

I tried these three ways but none of them work.

first way

services:
   wiremock:
     image: wiremock
     ports:
       - 8080:8080
     restart: always
     volumes:
       - ./myfolder/mystuff:/home/wiremock
     command: [--verbose]

second way

command: --verbose

third way

command: 
     - --verbose

I keep getting the error:

wiremock exec: "--verbose": executable file not found in $PATH: unknown

Upvotes: 4

Views: 7078

Answers (1)

Dmytro Melnychuk
Dmytro Melnychuk

Reputation: 2504

I've set up it in this way:

  mocked-services:
    image: wiremock/wiremock:2.33.2
    command: "--global-response-templating --verbose"

Upvotes: 8

Related Questions