Self-host WireMock with Levelrail
An HTTP mock server that stubs and records API responses for development and tests. Stubs are managed through its admin API, so restrict who can reach it.
- Authorwiremock
- LicenceApache-2.0
- Memory512 MiB
- Services1
How to self-host WireMock
-
Pull the images
One image is pulled on your server.
Show images
wiremock/wiremock:3.13.2
-
Create the app
One service starts in a single Compose app, with 1 named volume mount for your data, on port 8080.
-
Fill in the secrets
You do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
WireMock requirements
- Memory
- About 512 MiB
- Architectures
- amd64 unknown, arm64 unknown
- Ports
- 8080
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- Apache-2.0, permissive license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then WireMock. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the WireMock docs page.
Deploy WireMock your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy WireMock from the CLI
levelrail-cli templates deploy wiremock --name my-wiremock Deploy WireMock with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/wiremock/deploy WireMock configuration
WireMock services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| wiremock | wiremock/wiremock:3.13.2 | 8080 | mappings -> /home/wiremock |
WireMock environment variables
The catalog lists no environment variables for this template.
Ports and volumes
- Ports
- 8080
- Volumes
- 1 named mount: mappings -> /home/wiremock
WireMock FAQ
How much memory does WireMock need?
The catalog lists about 512 MiB of memory for WireMock.
Does WireMock run on arm64?
For WireMock, arm64 support is not confirmed; amd64 is unknown.
What licence is WireMock under?
WireMock is licensed under Apache-2.0, which is permissive, with few conditions on reuse.
Does WireMock need configuration before it starts?
No. The template fills in its own defaults.
Which ports does WireMock use?
WireMock listens on port 8080 inside the stack.
Where does WireMock keep its data?
In a named volume: mappings mounted at /home/wiremock.
Can I deploy WireMock on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for WireMock, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image wiremock/wiremock:3.13.2 is what you deploy there.