---
title: "Hasura template"
description: "A GraphQL engine for a PostgreSQL database."
path: "/templates/hasura/"
---

# Hasura

A GraphQL engine for a PostgreSQL database.

One command creates the Hasura app and a PostgreSQL database, then connects them. The GraphQL console is turned on. The app gets a public address.

## Install

Run it in the environment you want. The command waits until the public address responds.

```
dflow templates:install hasura
```

One app and one PostgreSQL database.

## Application

- Name: hasura
- Image: hasura/graphql-engine:v2.42.0
- Port: 8080
- Replicas: 1
- CPU: 200 millicores
- Memory: 512 Mi
- Console: On
- Address: Public route

## Database

- Name: hasura-db
- Engine: PostgreSQL
- Database: hasura
- Storage: 1Gi

## How they connect

- HASURA_GRAPHQL_DATABASE_URL is the URL of hasura-db.
- HASURA_GRAPHQL_ADMIN_SECRET is the database password.
- HASURA_GRAPHQL_ENABLE_CONSOLE is set to true.