docs/one_click_setup.md
This document provides detailed information about the one-click setup script for Hyperswitch.
The setup.sh script simplifies the process of setting up Hyperswitch in a local development or testing environment. It provides an interactive setup experience that handles checking prerequisites, configuring the environment, and starting the necessary services.
The script offers four deployment profiles to match your needs:
Docker not running
Port conflicts
Server not becoming healthy
docker compose logs hyperswitch-server or podman compose logs hyperswitch-server.To view logs for any service:
docker compose logs -f [service-name]
Common service names:
hyperswitch-serverpg (PostgreSQL)redis-standalonehyperswitch-control-centerYou can set these environment variables before running the script:
DRAINER_INSTANCE_COUNT: Number of drainer instances (default: 1)REDIS_CLUSTER_COUNT: Number of Redis cluster nodes (default: 3)Example:
export DRAINER_INSTANCE_COUNT=2
./setup.sh
After setup, you can manually control services:
docker/podman compose downdocker/podman compose up -d [service-name]docker/podman compose restart [service-name]After running the setup script:
curl --head --request GET 'http://localhost:8080/health'.http://localhost:9000.