Application hosting

Hosting Keycloak

Keycloak provides identity and access management for applications. A production installation brings together the service, its database and secure access configuration to keep sign-in available to users.

Requirements last checked against the project's documentation.

A sensible first server for Keycloak is 2 vCPU, 2 GB RAM and 20 GB of storage. The cheapest listed plan that fits is OVHcloud VPS-1 (US) at $4.54/month.

  • Latest release26.8.2
  • LicenseApache-2.0

Understand the setup

Find the software and services needed to run the application.

See requirements

Budget your resources

Plan memory, storage and CPU for the way you will use it.

Open resource planner

Build your shortlist

Compare plans for the starting size, then review the provider and billing terms.

See plans

Must have

Installation requirements

  • Use production startup settings with a configured hostname, secure public access and a production database.
  • Keep database credentials private and preserve the database when replacing containers.

Recommended

Planning guidance

  • Start with 2 vCPU, 2 GB RAM and 20 GB storage.Resize after watching real memory and CPU use under your own traffic.
  • Use the resource planner to size for your user count.

Choosing a server for Keycloak

Login rate, account volume and session activity shape the deployment. Include the production database and any clustering arrangement in the resource budget.

Where to start

A sensible first server for Keycloak

vCPU
2
RAM
2 GB
Disk
20 GB

Keycloak's sizing guide budgets about 1,250 MB of RAM per instance and 1 vCPU for every 15 password logins per second. Two vCPU and 2 GB cover a small realm; load-test before relying on it.

Keycloak memory and CPU sizing · Size it for your workload

Our shortlist

Cheapest plans that meet this size

  1. OVHcloud Lowest price

    OVHcloud VPS-1 (US)

    • 2 vCPU
    • 4 GB RAM
    • 40 GB NVMe SSD
    $4.54/mo list price
  2. VPSDime

    Linux4GB

    • 2 vCPU
    • 4 GB RAM
    • 20 GB SSD
    $5.00/mo list price
  3. KnownHost

    Unmanaged VPS Entry Plus

    • 2 vCPU
    • 2 GB RAM
    • 50 GB NVMe
    $10.00/mo list price
  4. RamNode

    Standard VPS 2 GB

    • 2 vCPU
    • 2 GB RAM
    • 80 GB SSD
    $10.00/mo list price
  5. Amazon Web Services

    Amazon Lightsail · 2 vCPU / 2 GB

    • 2 vCPU
    • 2 GB RAM
    • 60 GB SSD
    $10.00/mo list price
  6. Hivelocity

    Hivelocity pro.sm.amd

    • 2 vCPU
    • 4 GB RAM
    • 40 GB NVMe SSD
    $10.00/mo list price
  7. Namecheap

    Pulsar

    • 2 vCPU
    • 2 GB RAM
    • 40 GB SSD RAID 10
    $11.88/mo list price
  8. Google Cloud

    Compute Engine e2-small · 2 vCPU / 2 GB

    • 2 vCPU
    • 2 GB RAM
    $12.23/mo hourly × 730

One cheapest plan per provider, based on each provider's standard list price. Check the plan page for introductory and renewal pricing before you buy.

Deploy with

Supported paths

  • Official container image
  • Bare-metal or virtual-machine installation

The host must provide

Runtime

Java
Supported OpenJDK 17, 21, or 25 in current documentation
Database
Production-grade supported database; development file database is unsuitable for production
Transport
TLS and configured public hostname for production mode

Storage

Persistent data

Persistent database storage, logs, backups, and optional cluster data need sizing for the actual identity workload. A universal disk minimum is not documented.

Step by step

Keycloak deployment outline

  1. Choose supported runtime and database

    Check the Keycloak supported-configurations guide for the intended release and database version.

    Official instructions
  2. Configure production transport

    Set the public hostname, TLS, a production database, and appropriate reverse-proxy boundaries before starting in production mode.

    Official instructions
  3. Validate readiness and recovery

    Use the documented readiness endpoint, restrict administration, and test database backup recovery.

    Official instructions

Security

Before you go public

  • Use TLS for all identity traffic.
  • Restrict administrative endpoints and protect bootstrap credentials.
  • Use a production database and test recovery before handling real accounts.

Cost

Beyond the server price

  • Budget for database, backups, TLS termination, monitoring, and capacity for peak login traffic.
  • High availability adds multiple instances and shared infrastructure.

Want the full monthly bill? Use the hosting cost calculator. Add storage, backups and other costs to your estimate.