giuseppe-trisciuoglio avatar

Wiremock Standalone Docker

Standalone WireMock Docker setup that stubs external APIs for integration tests, including error and timeout simulation.

CCM score
51 of 100
skills.sh installs
3.6K
GitHub stars
372
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Docker Compose setup for WireMock 3.5.2, directory layout, JSON stub mappings, and client configuration
  • Includes stub examples for 200, 404, 500, delayed timeouts, and 429 rate limits, plus request inspection via /__admin/requests
  • Enables --global-response-templating and warns that mappings reset on container restart
  • Designed for teams testing HTTP clients, retry logic, and error handling without calling real third-party services

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill wiremock-standalone-docker -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

WireMock Standalone Docker Skill

Overview

Provides patterns for running WireMock as a standalone Docker container to mock external APIs during integration and end-to-end testing. Runs WireMock as a separate service that simulates real API behavior for testing HTTP clients, retry logic, and error handling.

When to Use

Use when you need to:

  • Mock external APIs during integration or end-to-end testing
  • Simulate error conditions (timeouts, 5xx, rate limiting) without real services
  • Test HTTP client configurations, retry logic, and error handling
  • Create portable, reproducible test environments
  • Validate API contracts before implementing the real service

Instructions

Step 1: Set Up Docker Compose

Create a docker-compose.yml with WireMock 3.5.2, port mapping, and volume mounts for mappings and files:

version: "3.8"
services:
  wiremock:
    image: wiremock/wiremock:3.5.2
    ports:
      - "8080:8080"
    volumes:
      - ./wiremock:/home/wiremock
    command: ["--global-response-templating"]

Step 2: Create Directory Structure

Create the WireMock configuration directories:

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Testing & QA, DevOps & Cloud
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 95

Similar to Wiremock Standalone Docker

More Testing & QA