2020-01-14 15:57:45 +03:00
|
|
|
.. meta::
|
|
|
|
:description: Deploy Hasura GraphQL engine
|
|
|
|
:keywords: hasura, docs, deployment
|
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
.. _deployment:
|
|
|
|
|
2019-09-11 10:17:14 +03:00
|
|
|
Deploying Hasura GraphQL engine
|
2018-09-11 14:11:24 +03:00
|
|
|
===============================
|
|
|
|
|
2018-12-03 15:12:24 +03:00
|
|
|
.. contents:: Table of contents
|
|
|
|
:backlinks: none
|
|
|
|
:depth: 1
|
|
|
|
:local:
|
|
|
|
|
2018-09-11 14:11:24 +03:00
|
|
|
.. note::
|
2019-09-11 10:17:14 +03:00
|
|
|
This section talks in depth about deploying the Hasura GraphQL engine for a **production-like environment**.
|
2018-09-11 14:11:24 +03:00
|
|
|
If you would simply like to take the Hasura GraphQL engine for a quick spin, choose from our
|
2020-03-11 22:42:36 +03:00
|
|
|
:ref:`Getting started guides <getting_started>`.
|
2018-09-11 14:11:24 +03:00
|
|
|
|
2018-12-03 15:12:24 +03:00
|
|
|
Deployment guides
|
|
|
|
-----------------
|
|
|
|
|
2018-09-11 14:11:24 +03:00
|
|
|
The Hasura GraphQL engine is a binary that is shipped as a Docker container.
|
|
|
|
|
|
|
|
Choose from the following guides to deploy the Hasura GraphQL engine and connect it to a Postgres database:
|
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
- :ref:`Deploy using Heroku <deploy_heroku>`
|
|
|
|
- :ref:`Deploy using Docker <deployment_docker>`
|
|
|
|
- :ref:`Deploy using Kubernetes <deploy_kubernetes>`
|
2018-09-11 14:11:24 +03:00
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
You can also check :ref:`guides_deployment` for more specific examples.
|
2018-10-09 17:08:54 +03:00
|
|
|
|
2020-05-21 10:22:18 +03:00
|
|
|
.. admonition:: Custom Docker images or binaries
|
|
|
|
|
|
|
|
If you need a custom Docker image or binary for GraphQL engine, please see :ref:`this page <custom_docker_image>`
|
|
|
|
|
|
|
|
|
2018-12-03 15:12:24 +03:00
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
2018-09-11 14:11:24 +03:00
|
|
|
By default, Hasura GraphQL engine runs in a very permissive mode for easier development. Check out the below pages
|
2019-09-11 10:17:14 +03:00
|
|
|
to configure the Hasura GraphQL engine for your production environment:
|
2018-09-11 14:11:24 +03:00
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
- :ref:`securing_graphql_endpoint`
|
|
|
|
- :ref:`postgres_permissions`
|
|
|
|
- :ref:`GraphQL engine server configuration <hge_flags>`
|
2018-09-11 14:11:24 +03:00
|
|
|
|
2018-12-03 15:12:24 +03:00
|
|
|
Logs
|
|
|
|
----
|
|
|
|
|
2018-10-11 14:29:53 +03:00
|
|
|
For access to Hasura GraphQL engine logs, check the below page for details:
|
2018-10-10 17:21:43 +03:00
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
- :ref:`Logging <hge_logs>`
|
2018-10-10 17:21:43 +03:00
|
|
|
|
2018-09-11 14:11:24 +03:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
:titlesonly:
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
Using Heroku <heroku/index>
|
|
|
|
Using Docker <docker/index>
|
|
|
|
Using Kubernetes <kubernetes/index>
|
2019-03-06 11:58:04 +03:00
|
|
|
Server configuration <graphql-engine-flags/index>
|
2020-06-02 17:55:40 +03:00
|
|
|
postgres-requirements
|
2018-09-11 14:11:24 +03:00
|
|
|
securing-graphql-endpoint
|
2019-10-23 12:23:41 +03:00
|
|
|
Server logs <logging>
|
|
|
|
Enable HTTPS <enable-https>
|
2019-05-16 09:13:25 +03:00
|
|
|
allow-list
|
2019-09-19 15:54:40 +03:00
|
|
|
HTTP Compression <compression>
|
2019-10-23 12:23:41 +03:00
|
|
|
Production checklist <production-checklist>
|
2020-05-21 10:22:18 +03:00
|
|
|
Custom Docker images or binaries <custom-docker-images>
|
2019-10-17 15:02:01 +03:00
|
|
|
Updating GraphQL engine <updating>
|
|
|
|
Downgrading GraphQL engine <downgrading>
|