Deploy WireMock Staging Sandbox
WireMock staging sandbox with editable fixtures and secure admin access.
wiremock
Just deployed
Deploy and Host WireMock Staging Sandbox on Railway
About Hosting WireMock Staging Sandbox
Deploy a WireMock sandbox for shared staging and CI. The template uses wiremock/wiremock:3.13.2, generates an independent admin password for every installation, and ships a working mock order API and a health endpoint.
Why Deploy WireMock on Railway
Give services inside a Railway project a stable endpoint for exercising integrations with synthetic data. The admin API requires credentials, so trusted teammates and CI jobs can manage mappings.
Common Use Cases
- Test an API client against predictable order responses.
- Share mock endpoints between services in a staging environment.
Dependencies for WireMock Staging Sandbox
Deployment Dependencies
Try it after deployment
From a service in the same Railway project, call http://wiremock.railway.internal:8080/v1/orders/ord_demo. If you want a remote CI runner to reach these synthetic fixtures, give WireMock a Railway HTTPS domain in the service's networking settings and use that URL. Keep fixtures with private data inside your own staging network.
Edit WIREMOCK_ORDER_FIXTURE in Railway variables and redeploy to change the example response. For additional mappings, use the WireMock mapping format and the authenticated admin API. To persist extra mappings across image restarts, keep them in your own image or Git-backed deployment source.
Authenticate to the admin API
Open the service's Variables tab and copy the generated WIREMOCK_ADMIN_PASSWORD. The default user is admin.
curl -fsS -u "admin:$WIREMOCK_ADMIN_PASSWORD" "$WIREMOCK_URL/__admin/mappings"
Normal mock calls and /healthz are reachable on the configured network. The admin API requires Basic authentication. Use HTTPS for admin calls over a public Railway domain. Upstream WireMock Docker image
Template Content
wiremock
wiremock/wiremock:3.13.2WIREMOCK_ORDER_FIXTURE
