Before you begin
Prepare two new Linux servers with Docker Engine, Docker Compose v2, Bash, and network reachability between them. Each node has its own database and persistent Docker volumes. Choose the nodes' reachable IPv4 addresses before starting.
1. Prepare both nodes
Download the same RadiusStack release onto each node and enter the extracted directory. Run the guided setup on the primary first:
bash setup_env.shAnswer Y to enable HA, choose primary on the first node, and enter the other node's reachable IPv4 address. Keep the primary's generated JWT_SECRET, RADSEC_PASSPHRASE_ENCRYPTION_KEY, and HA_API_TOKEN available only for the second node's setup.
2. Configure the secondary
Run bash setup_env.sh on the second node, enable HA, choose secondary, and enter the primary's reachable IPv4 address. Supply the exact shared values from the primary for JWT_SECRET, RADSEC_PASSPHRASE_ENCRYPTION_KEY, and HA_API_TOKEN. Do not generate replacements on the secondary.
3. Verify the required HA settings
HA_ENABLED=trueon both nodes.HA_ROLE=primaryon one andHA_ROLE=secondaryon the other.HA_DB_OFFSET=1on the first server andHA_DB_OFFSET=2on the second. Keep each offset with its server even if roles change.HA_PEER_IPpoints to the other node on each server.HA_API_TOKENis the same unique value of at least 32 characters on both nodes.API_PORTis the same on both nodes (default 3000) and both servers can reach that port.
4. Start both nodes and check status
docker compose up -d --build
docker compose psStart both stacks, then open Settings → High Availability Status in the Global context. Confirm the primary-to-secondary configuration sync and review HA health before configuring production NAS clients. Never place the shared secrets in tickets, screenshots, or documentation.