{
  "id": "hasura",
  "name": "Hasura",
  "slogan": "An instant GraphQL and REST API on top of Postgres with permissions, subscriptions and an admin console.",
  "category": "Developer Tools",
  "categorySlug": "developer-tools",
  "tags": [
    "postgres",
    "multi-service"
  ],
  "license": {
    "spdx": "Apache-2.0",
    "class": "permissive"
  },
  "memoryMiB": 512,
  "architectures": {
    "amd64": "published",
    "arm64": "published"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install hasura --name my-hasura",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/hasura/",
  "docsUrl": "https://hasura.io/docs/2.0/deployment/docker/",
  "sourceRepo": "https://github.com/hasura/graphql-engine",
  "markdownUrl": "https://levelrail.com/templates/hasura.md",
  "jsonUrl": "https://levelrail.com/templates/hasura.json",
  "indexable": true,
  "description": "An instant GraphQL and REST API on top of Postgres with permissions, subscriptions and an admin console.",
  "pinnedTag": "16-alpine",
  "licenseUrl": "https://github.com/hasura/graphql-engine/blob/master/LICENSE",
  "licenseClassLabel": "Permissive license",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [],
  "services": [
    {
      "name": "db",
      "image": "postgres",
      "tag": "16-alpine",
      "ports": [],
      "volumes": [
        "pgdata -> /var/lib/postgresql/data"
      ]
    },
    {
      "name": "hasura",
      "image": "hasura/graphql-engine",
      "tag": "v2.51.0",
      "ports": [
        8080
      ],
      "volumes": []
    }
  ],
  "env": [
    {
      "service": "db",
      "name": "POSTGRES_DB",
      "kind": "preset"
    },
    {
      "service": "db",
      "name": "POSTGRES_PASSWORD",
      "kind": "generated"
    },
    {
      "service": "db",
      "name": "POSTGRES_USER",
      "kind": "preset"
    },
    {
      "service": "hasura",
      "name": "HASURA_GRAPHQL_ADMIN_SECRET",
      "kind": "generated"
    },
    {
      "service": "hasura",
      "name": "HASURA_GRAPHQL_DEV_MODE",
      "kind": "preset"
    },
    {
      "service": "hasura",
      "name": "HASURA_GRAPHQL_ENABLED_LOG_TYPES",
      "kind": "preset"
    },
    {
      "service": "hasura",
      "name": "HASURA_GRAPHQL_ENABLE_CONSOLE",
      "kind": "preset"
    },
    {
      "service": "hasura",
      "name": "HASURA_GRAPHQL_METADATA_DATABASE_URL",
      "kind": "generated"
    },
    {
      "service": "hasura",
      "name": "PG_DATABASE_URL",
      "kind": "generated"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates install hasura --name my-hasura",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/hasura/install \\\n  -d '{\n    \"name\": \"my-hasura\"\n  }'",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates install hasura --name my-hasura",
        "note": "Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain db=app.example.com."
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\\n  https://levelrail.example.com/api/v1/service-templates/hasura/install \\\n  -d '{\n    \"name\": \"my-hasura\"\n  }'",
        "note": "Create a token in the dashboard first. Name, env and domains are the request fields."
      }
    ]
  }
}
