SH SelfHostAlt
Sponsored Self-host any open-source app on Hostinger KVM VPS from $4.99/mo (1-Click Docker) →
Hasura logo

Hasura

Apache-2.0 Docker Ready ★ 32,128 Stars Active · 2026-11-19

Fast, instant realtime GraphQL APIs on Postgres with fine grained access control, also trigger webhooks on database events. .

Category
Software Development - API Management
Tech Stack / Runtime
Haskell/Docker/K8S · TypeScript
Open-Source License
Apache-2.0
GitHub Health
★ 32,128 · 2,959 forks
#graphql#graphql-server#postgres#hasura#access-control

Commercial SaaS Replaced

Official docker-compose.yaml

Quick Docker Compose Reference for Hasura

# This file extends the base Docker Compose files to make manual testing easy.
#
# Run the following to get started:
#
#     docker compose up -d
#
# That will start up services in the background. To take them down, you have to
# run:
#
#     docker compose down
#
# If you changed DB init scripts, then you should also run:
#
#     docker compose down -v
#
# That'll delete the volumes. Otherwise e.g. PostgreSQL will skip initializing
# if a DB already exists.
#
# If you omit `-d`, it'll run them all in the foreground, then you can stop them
# with your usual Ctrl-C terminal command.
#
# Facts:
#
# * The SERVICE PORTS numbering start at 65001, 65002, etc. to avoid bothering
#   existing instances of databases.
#
# * The login credentials are, where possible, all "hasura" to avoid unnecessary
#   mental overhead.
#
# * The SQL Server image will only work on macOS if you enable the relevant
#   settings. Open the Docker Desktop settings, enable "Use Virtualization
#   framework" in the "General" tab, and "Use Rosetta for x86/amd64 emulation on
#   Apple Silicon" in the "Features in development" tab.

name: hge-manual-tests

services:
  postgres:
    extends:
      file: docker-compose/databases.yaml
      service: postgres
    ports:
      - "65002:5432"
    environment:
      POSTGRES_USER: "hasura"
      POSTGRES_PASSWORD: "hasura"
      POSTGRES_DB: "hasura"
    volumes:
      - postgres-data:/var/lib/postgresql
      - ./docker-compose/postgres/init.sh:/docker-entrypoint-initdb.d/init-hasura.sh:ro

  citus:
    extends:
      file: docker-compose/databases.yaml
      service: citus
    ports:
      - "65004:5432"
    environment:
      POSTGRES_USER: "hasura"
      POSTGRES_PASSWORD: "hasura"
      POSTGRES_DB: "hasura"
    volumes:
      - citus-data:/var/lib/postgresql
      - ./docker-compose/postgres/init.sh:/docker-entrypoint-initdb.d/init-hasura.sh:ro

  cockroach:
    extends:
      file: docker-compose/databases.yaml
      service: cockroach
    ports:
      - "65008:26257"
    environment:
      COCKROACH_USER: "root"
      COCKROACH_DATABASE: "hasura"
    volumes:
      - cockroach-data:/cockroach/cockroach-data

  sqlserver:
    extends:
      file: docker-compose/databases.yaml
      service: sqlserver
    ports:
      - "65003:1433"
    volumes:
      - mssql-data:/var/opt/mssql
# ... (see full file in official GitHub repository)

Hasura System Requirements & Self-Hosting Guide

Deploy Hasura (1 – 2 GB RAM) →

Recommended VPS

1 – 2 GB RAM

1 – 2 vCPU · $4 – $6/mo VPS

Deployment Method

Beginner-Friendly

Docker / Docker Compose (Recommended)

Commercial Use (Apache-2.0)

Yes — widely approved for commercial and enterprise self-hosting.

Maintenance Status

Active

Last commit: 2026-11-19

Frequently Asked Questions about Hasura

Is Hasura free to self-host for commercial use?

Hasura is released under the Apache-2.0 license. Yes — widely approved for commercial and enterprise self-hosting. It has 32,128 GitHub stars and was last updated on 2026-11-19.

What VPS specifications do I need to self-host Hasura?

Based on its Haskell/Docker/K8S runtime and Software Development - API Management workload, we recommend at least 1 – 2 GB RAM and 1 – 2 vCPU (typically $4 – $6/mo VPS).

Does Hasura support Docker deployment?

Yes — Hasura supports Docker / Docker Compose (Recommended), making it beginner-friendly to spin up on any Linux VPS.

More Open-Source Software Development - API Management

View all →
★ 44.4k Docker

Microservice API Gateway and Platform. .

Apache-2.0 Lua/Docker/K8S/deb
Details →
★ 23.5k Docker

Evaluate, test, and ship LLM applications with a suite of observability tools to calibrate language model outputs across your dev and production lifecycle. .

Apache-2.0 Docker/Python
Details →
★ 10.9k Docker

Fast and scalable API Gateway. Out of the box, Tyk offers an API Management Platform with an API Gateway, API Analytics, Developer Portal and API Management Dashboard. .

MPL-2.0 Go/Docker/K8S
Details →
★ 3.5k Docker

Webhooks as a service that makes it super easy for API providers to send webhooks. .

MIT Docker/Rust
Details →