Hasura - GraphQL API for your data
Everything you need to deploy Hasura with BlastDock
One command deployment
Production-ready security
Customizable settings
Ready to scale up
blastdock init
Initialize new project
blastdock deploy
Deploy the application
blastdock status
Check deployment status
blastdock logs
View application logs
Get Hasura up and running in minutes with our one-click installation.
First, install BlastDock using pip (recommended):
pip install blastdock
Then deploy Hasura with:
blastdock init hasura
Interactive mode:
blastdock init hasura -i
blastdock templates
List available templates
blastdock status project
Check deployment status
blastdock logs project
View application logs
blastdock stop project
Stop deployment
Customize your Hasura installation with these configuration options.
GraphQL endpoint port
Admin secret key
Database password
Complete Docker Compose configuration for Hasura deployment.
version: '3.8'
services:
postgres:
image: postgres:13
container_name: {{ project_name }}_postgres
restart: unless-stopped
environment:
0: POSTGRES_PASSWORD={{ db_password }}
volumes:
- /var/lib/postgresql/data
networks:
- hasura_network
hasura:
image: hasura/graphql-engine:latest
container_name: {{ project_name }}_hasura
restart: unless-stopped
depends_on:
- postgres
ports:
- "8080"
environment:
- HASURA_GRAPHQL_DATABASE_URL=postgres: //postgres:{{ db_password }}@postgres:5432/postgres
0: HASURA_GRAPHQL_ENABLE_CONSOLE=true
1: HASURA_GRAPHQL_DEV_MODE=true
2: HASURA_GRAPHQL_ADMIN_SECRET={{ admin_secret }}
networks:
- hasura_network
volumes:
postgres_data:
driver: local
networks:
hasura_network:
driver: bridge