Running Hyperswitch locally with Docker Compose for evaluation

Docker Compose gives engineering teams a fast way to run the Hyperswitch backend, Control Center and SDK on a laptop with dummy processors. It is an evaluation path, not a production architecture.

On this page

Running Hyperswitch with Docker Compose to evaluate it before you commit

Docker Compose launches the Hyperswitch backend, the Control Center and the SDK frontend on a single machine, and dummy processors such as fauxpay let you run test payments without any PSP credentials. Teams use this path when they want to see how payment flows, the Control Center screens and connector setup behave before they size a self-hosted deployment or ask a platform team to build one. It is a practical way for architects and developers to walk through a checkout, inspect payment records and confirm that their own integration calls reach the backend as expected.

The setup does not prove production readiness. A laptop stack runs a single instance of each component with local storage, so it says nothing about high availability, database replication, Redis behavior under load, key management, backups or upgrades across releases. Dummy connectors also skip real processor authentication, webhooks, settlement files and declines, so they cannot show how live acquirer behavior will affect your routing or reconciliation. Confirm the exact services, image tags and configuration keys in the setup files of the release you plan to evaluate, and check the Hyperswitch FAQ for the current local setup guidance.

Treat the evaluation as an input to planning, not a substitute for it. Record which components you actually exercised, which processors you still need to test with credentials in a non-production environment, and which operational questions remain open, such as who runs PostgreSQL and Redis, how secrets are stored and which vault model you will use. Those answers decide whether the next step is a managed Kubernetes deployment, an on-premises build or a hosted sandbox for connector testing.

How the local evaluation stack fits together

The diagram starts in the browser on the laptop, where the SDK frontend and Control Center call the Router, which handles payment requests and hands background work to the Scheduler. Both services read and write PostgreSQL and use Redis for caching and the scheduler queue, and card data goes to the card vault. The only processor in the path is fauxpay, a dummy connector, so no live PSP or production network is involved. Check that every outbound call stops at the dummy connector before you rely on test results.

Every payment call stays on the laptop and ends at the dummy connector.

Starting the Compose stack and making a first test payment

This sequence takes you from a machine with Docker installed to a test payment that appears in the Control Center, using the dummy fauxpay connector so no real processor credentials are needed. Each step ends with a check you can run before moving on.

  1. Confirm Docker and local resource prerequisites

    Check that Docker and the Docker Compose plugin are installed and running on your machine, and that you have enough free memory and disk for several containers at once. Confirm the required versions and minimum resources in the repository docs before you start, because the stack runs a backend, a dashboard, a database and a cache together. Done when docker version and docker compose version both return output without errors and Docker has enough memory allocated to run the stack.

  2. Clone the repository and pin the release tag

    Clone the juspay/hyperswitch repository and check out the release tag you intend to evaluate, rather than running whatever is on the default branch. Record the tag in your notes so that the same version can be reproduced later and compared against the compatibility matrix in the release notes. Confirm the exact clone and checkout commands in the repository docs for that tag. Done when the working directory shows the tag you chose and the Compose files for that release are present.

  3. Start the Compose stack

    From the repository directory, start the Compose stack using the command documented for that release. The first start pulls images and initializes the database, so expect it to take noticeably longer than later starts. Watch the output for containers that exit or restart repeatedly, because those usually point to a port conflict or a memory limit. Done when docker compose ps lists the expected services as running.

  4. Confirm service health

    Check that the backend answers its health endpoint and that the Control Center and SDK frontend are reachable in a browser. Use the health path and ports listed in the repository docs for your release, since these can change between versions. If a service is up but a dependent service is not, read that container's logs before changing configuration. Done when the health endpoint returns a successful response and both the dashboard and the SDK page load.

  5. Open the Control Center and create a merchant

    Open the Control Center in your browser and sign up or log in using the flow the local setup provides. Create a merchant account and note the merchant identifier shown in the dashboard. Then generate an API key for that merchant from the developer settings. Store the key in a local file or password manager, since you will need it for the test payment. Done when the merchant appears in the dashboard and the API key is listed as active.

  6. Configure the fauxpay dummy connector

    In the Control Center, add the fauxpay dummy processor as a connector for your merchant account. Fauxpay is a dummy processor that lets you test payments without real processor credentials, and the Hyperswitch FAQ describes dummy processors like it for this purpose. Confirm the connector name and any required fields in the repository or docs for your release. Done when fauxpay shows as an enabled connector on the merchant account and no live credentials are stored.

  7. Send a test payment through the SDK

    Open the SDK frontend, create a payment using the merchant API key and the test card values documented for the dummy connector, and complete the checkout. Use only test card numbers supplied for the dummy connector, never a real card. Then open the payments list in the Control Center. Done when the payment appears with a succeeded status in the dashboard and the matching payment ID appears in the backend logs.

  8. Record what you tested and tear down

    Write down the release tag, the commands you ran, the connector configuration and the payment ID, so the evaluation can be repeated or handed to a colleague. Stop the stack with the documented Compose command when you finish. Remember that this local setup holds test data only and is not a production path, so production planning starts from the self-hosting docs and a proper Kubernetes deployment. Done when the stack is stopped and your notes list the tag, steps and results.

Which local option fits which evaluation goal

This table matches four evaluation goals to the local or near-local setup that serves each one, with what each setup proves and what it leaves untested. Read each row against your goal first, then check the limits column before you count a result as evidence for production. The main takeaway is that Docker Compose with fauxpay proves the API flow and nothing about real processors, Kubernetes or PCI scope.

Evaluation goalWhat it provesWhat it does not prove
First run and API learning: Docker Compose with fauxpayThe backend, Control Center and SDK start together on one machine, and test payments can move through the API using a dummy processor such as fauxpay.Real processor behavior, live credentials, webhook delivery from a processor, or how the stack behaves under load.
Connector-independent testing: hosted sandboxIntegration code can create and confirm payments against a managed Hyperswitch environment without running any services yourself.Your own infrastructure, your network controls, your data handling, or any self-hosted configuration choice.
Kubernetes-shaped trial: MinikubeHelm charts install and the services can reach one another inside a Kubernetes cluster, which helps your platform team read the chart layout.Cluster sizing, high availability, database and cache capacity, ingress and egress design, or upgrade behavior across releases.
Production planning: cloud Helm installYour team can see the components, configuration values and dependencies a production install requires in your target cloud or data center.Actual production readiness. You still need PCI DSS scoping, key management, monitoring, backups and processor credentials.
Choosing the Compose path for a demoA single laptop can show the Control Center and checkout flow to stakeholders who want to see the product working.Any statement about availability, data protection or compliance, because the Compose setup is not a production path.

Why the laptop setup is not a production path

The Docker Compose setup proves that the Hyperswitch backend, Control Center and SDK frontend start and talk to each other, and that dummy processors such as fauxpay can complete test payments without real PSP credentials. It does not prove that the stack can run under live traffic. Everything around the containers is missing: a single host with no sizing evidence, a PostgreSQL and Redis tier without replicas or failover, no ingress or TLS termination, no secrets management beyond local files, no monitoring, no tested backups, and no decision about who holds the encryption and key material. Treat each of these as a gap to close, not a setting to tweak on the laptop.

The gap that matters most for a regulated team is card data. In the self-hosted, in-house PCI model, the Hyperswitch docs state that the merchant is fully responsible for PCI DSS certification and data handling. A test run that sends real card numbers, or a developer who copies a test card into a shared environment, still puts those cards inside your environment. Before any card touches a Compose stack, confirm with your QSA which systems fall into scope, where the card vault runs, who can read its logs, and how the keys are kept. The Hyperswitch self-hosted and in-house PCI model page is the starting point for that conversation.

The practical next steps are to move the evaluation into a cluster you control using the Helm path, then work through the go-live checklist before any live processor credential or webhook endpoint is configured. Processors must be able to reach your webhook URLs over TLS, which a laptop behind a home router cannot provide. Plan the environment separation, the PCI validation and the monitoring as part of that move, and ask your team to confirm the current chart and component requirements against the Hyperswitch documentation at the time you build.

Security habits to keep even on a laptop

A local Hyperswitch stack is easy to treat as a throwaway, but it still holds keys, credentials and configuration that can leak into real systems. The habits below keep the evaluation contained so that nothing you build on a laptop carries risk into a shared or production environment.

Keep live credentials out of Compose

Never place live processor API keys, merchant secrets or webhook signing secrets in the Compose file, an .env file or the shell environment. Compose files are often committed to Git and copied into tickets, so a live key there is effectively published. Use the dummy processor for evaluation and confirm that no connector in your local configuration points at a live processor account.

Use only dummy processors and test cards

The FAQ describes dummy processors such as fauxpay as the way to test without real PSP credentials. Limit yourself to those connectors and to published test card numbers. A local stack that accepts a real card number would turn a laptop into an unscoped place where cardholder data is handled, which is the condition PCI DSS scoping is meant to prevent.

Hyperswitch FAQ

Keep the Control Center off shared networks

The Control Center is an operations console for connecting processors and viewing payments, refunds and disputes. Bind its port to localhost rather than exposing it on your LAN, and avoid running the stack on a laptop joined to public Wi-Fi with port forwarding enabled. Check the published ports in your Compose output before you start the stack.

Do not reuse generated secrets

Keys and secrets generated for the local stack, including encryption and admin credentials, must not be copied into a sandbox, integration or production environment. Generate new values in each environment instead. Reuse across environments means a laptop compromise exposes the environments that matter most, and it also makes it unclear which key protects which data.

Keep real customer data out of test databases

Seed data for the local PostgreSQL database should be synthetic. Production exports, customer records or saved card data copied into a laptop database move regulated data outside the controls your organization operates. If you need realistic volume, generate synthetic records instead of restoring a backup.

Reset volumes after experiments

Named Docker volumes keep database contents and generated state between runs. After an experiment, remove the stack with its volumes so that test merchants, keys and logs do not persist. Before you move to SSO, note that the Control Center supports OpenID Connect only, with no SAML, so plan that configuration separately from the local setup.

Control Center SSO docs

Questions teams ask before running Hyperswitch locally

How long does a Docker Compose evaluation of Hyperswitch usually take?

The time depends mostly on how much of the platform the team wants to exercise and how familiar it is with Docker and payments terminology. A basic run that brings up the backend, Control Center and SDK frontend and completes a few test payments is a contained exercise for an engineer who already works with containers. Time grows when the team also wants to explore routing rules, connector setup, webhooks and the SSO settings, because each of those needs reading and configuration. Ask your own engineers to time a single pass through a written test plan, then scale that to the scenarios you care about. No general duration is published here, so treat your own trial as the measure.

Can our team evaluate Hyperswitch locally without outside help?

Yes, a team with container experience and someone who reads the Hyperswitch docs can usually run the Compose setup alone. The official FAQ describes the local stack as the backend, Control Center and SDK frontend, so the first run is mostly about getting those containers healthy and logging in. Outside help becomes more useful once the evaluation turns into design questions, such as how cards would be vaulted, which processors to connect and how the stack would be hosted. Those questions belong to the production phase, which is a separate piece of work.

What does the team need to supply for a local Hyperswitch evaluation?

The work needs a few practical inputs before the first command runs:

  • A machine with Docker installed and enough memory and disk for the containers, which you should confirm against the Compose file in the repository.
  • Access to the Hyperswitch repository and the Control Center repository, so you can pull the matching versions.
  • An engineer who reads the self-hosting and FAQ pages and can explain what each container does to the rest of the team.

No live processor contracts or production credentials are needed for this stage.

Does fauxpay test real card flows?

Fauxpay tests the Hyperswitch request and response flow with a dummy processor, so you can create payments, see status changes and check how your integration handles them without real processor credentials. It does not move money, contact a card network or prove that a live acquirer will approve or decline a transaction. Real authorization behavior, 3DS challenges, settlement timing and webhook formats from a specific processor have to be checked against that processor's test environment after you connect it. Confirm the exact fauxpay behavior in the current FAQ and connector documentation before you rely on it for a test plan.

When should we bring in a partner for the production deployment?

Bring in a partner once the evaluation has answered the design questions and the team is ready to commit to a hosting model. Local Compose is not a production path, so the production work covers Kubernetes, the database and cache layers, secrets, environments, processor credentials and monitoring. Partner help is most useful when the internal team lacks Kubernetes or payments security experience, or when the scope must satisfy a compliance assessment. DeployOpen plans and implements self-hosted open-source platforms in your own infrastructure and prepares evidence for compliance assessments, but it does not issue audit reports or certifications. Scope and timeline are agreed in writing before work starts.

What determines the scope of a production Hyperswitch deployment?

The production scope follows the business decisions made after the evaluation. The main drivers are:

  • The processors and wallets you need, and whether each has live credentials and a webhook path.
  • The number of environments, such as sandbox, integration test and production, and how their data and keys stay separate.
  • The cloud or data center you run in, including managed database, cache and secrets services.
  • The compliance obligations you carry, especially PCI DSS scope, which depends on the vault model you choose.

Ask for a written scope that lists each of these items before you compare quotes.

Moving from a laptop evaluation to a production plan

The Docker Compose run is useful for proving that the stack starts, that the backend, Control Center and SDK talk to each other, and that a test payment completes against a dummy processor such as fauxpay. It does not prove anything about production, so the handoff starts by writing down what the evaluation showed and what it did not. Keep the release line the same as the one you evaluated, so that the version you test in production is the version you already understand. Record the exact image tags, the Control Center and web client versions, and any configuration you changed from the defaults. Also note that the Superposition dependency introduced in v1.124.0 must be running before you upgrade to that version or later, which the evaluation stack may not have shown you.

Next, turn the evaluation into a plan with separate decisions. Choose the deployment path, which for most teams means the Helm chart on Kubernetes described in the sibling Kubernetes guide. Decide how environments are separated, how secrets are supplied instead of written into a Compose file, and how PostgreSQL (with its master and replica setup) and Redis will be provisioned and backed up. Pick your vault model early, because it determines how much of PCI DSS scope lands on your systems. The Hyperswitch docs say that under the self-hosted in-house PCI model the merchant is fully responsible for PCI DSS certification and data handling, so confirm with your assessor whether an external vault provider would reduce that scope for your architecture. Collect live connector credentials through each processor's own onboarding, not from the evaluation setup.

Finally, treat the go-live checks as a separate workstream with its own owner. Work through the sibling Hyperswitch self-hosted go-live checklist style of review, covering processor contracts, PCI validation, monitoring, webhooks and key handling. Confirm the timeline with your own team and your DeployOpen scope rather than with anything the evaluation suggested, since a laptop run gives no basis for duration estimates. Ask any implementation partner for a written scope that names the environments, the components to be deployed and the evidence you will receive at handover.

How DeployOpen works on this

DeployOpen approaches a Hyperswitch Docker Compose evaluation as a bounded exercise: agree what the laptop environment must prove, stand it up in a way your team can repeat, and hand over notes that make clear what this setup does not cover. The work stays inside your own machines or lab network, and the result is a clear decision point for moving to a self-hosted production path.

How we scope

  • Agree in writing which components run locally: backend, Control Center and SDK frontend.
  • Define which dummy processors, such as fauxpay, will be used for test payments and what they must demonstrate.
  • Record the evaluation questions the team must answer and the production gaps the evaluation will not close.

How we build

  • Stand up the Docker Compose stack on the agreed machines and document the exact versions pinned for the evaluation.
  • Configure test merchant accounts, API keys and a sample checkout flow using dummy connectors only.
  • Verify that the backend, Control Center and SDK frontend communicate, and log each step so it can be repeated.

How we hand over

  • Deliver a runbook covering startup, reset, teardown and common failure points in the local stack.
  • Document which parts of the setup are not production grade, including single-node data stores, local secrets and absent high availability.
  • Provide a list of confirmations needed before a production build, such as processor contracts, live credentials and the chosen deployment path.

How we support

  • Answer follow-up questions from the evaluation team within the agreed scope of the written engagement.
  • Offer ongoing support, upgrades and continuous testing as a retainer if the evaluation moves toward a production build.
  • Carry the evaluation findings into the fixed-scope production plan so that nothing learned locally is lost.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.