Hasura
★ 32.1kA self-hosted alternative to Supabase
About
Community Ratings
No ratings yetNew this week
Read recap →Features
- single composable API endpoint
- secure data access
- PostgreSQL support
- MongoDB support
- ClickHouse support
- MS SQL Server support
- custom business logic connectors
- GraphQL Engine v2
- GraphQL Engine v3
- data connectors
Details
- Last Updated
- Dec 6, 2026
- Created
- Jun 18, 2018
- Install Methods
- source
- API
- GRAPHQL
- Runtime / Stack
- HaskellDockerK8S
- Deployment
Deployment: Docker Compose ✓6 Containers — moderate hosting footprintRuns as 6 containers
Run Hasura yourself
Pick how much you want to manage.
HostingerSponsored
One click
Hostinger template, runs in your own Hostinger account.
About 5 minutes to running
RailwayBest match
One click
Railway template, runs in your own Railway account.
About 5 minutes to running
netcup
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
5 more ways to host
HetznerA small server, then Docker Compose.(opens in a new tab)
DigitalOceanA small server, then Docker Compose.(opens in a new tab)
OVHcloudA small server, then Docker Compose.(opens in a new tab)
HostingeraffiliateA small server, then Docker Compose.(opens in a new tab)
ElestioHosted for you, nothing to maintain.(opens in a new tab)
Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.
Is this your project? Sponsor a listing
Run Hasura with Docker Compose
Compose file from the Hasura project repository.
6 services
no resource limits declared
needs persistent storage (6 volumes)
docker-compose.yaml · @ 96f68d0 · scanned Nov 3, 2026
# 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
dc-reference-agent:
extends:
file: dc-agents/docker-compose.yaml
service: dc-reference-agent
dc-sqlite-agent:
extends:
file: dc-agents/docker-compose.yaml
service: dc-sqlite-agent
volumes:
citus-data:
cockroach-data:
mssql-data:
postgres-data:
This file may be out of date. Check the Hasura documentation for current setup steps.
Tags
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.