WireMock.Net-docker icon indicating copy to clipboard operation
WireMock.Net-docker copied to clipboard

Is there a way to allow HTTPS connections

Open D-H opened this issue 3 years ago • 0 comments

I ran into an issue where I was not able to mock responses when a client make an HTTPS request rather than an HTTP request. Is there a way to configure the standalone Wiremock docker container to support for both HTTP and HTTPS mocking?

This is currently what my docker-compose entry looks like for my Wiremock container.

  users-service-mock:
    container_name: users-service-mock
    image: "sheyenrath/wiremock.net:1.3.3"
    networks:
      - users-https-test
    ports:
      - "80"
    command:
      - "--ReadStaticMappings"
      - "true"
      - "--WireMockLogger"
      - WireMockConsoleLogger
    volumes:
      - type: bind
        source: ./services/http-mocks/users-service-mock
        target: /app/__admin/mappings

D-H avatar Dec 01 '21 18:12 D-H