Skip to main content
MockServer supports multiple deployment options. Choose the one that fits your environment.
All deployment options (except the deployable WAR) use a single port for HTTP, HTTPS, and SOCKS traffic via port unification. You do not need to configure separate ports for different protocols.
Run MockServer as a Docker container:
MockServer is now available at http://localhost:1080.Configure via environment variablesPass configuration options as environment variables:
Docker ComposeAdd MockServer as a service in your docker-compose.yml:
To mount a properties file or JSON expectation initializer:
MockServer uses a distroless base image (no interactive shell) for reduced attack surface. Only the JVM and MockServer code are included in the container.