mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
Docs: Add snowflake and athena to databases list. DigitalOcean one word
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7767 GitOrigin-RevId: 323ef11e437a569d57f5c488e8db5374c1e22604
This commit is contained in:
parent
05042d33d5
commit
8f4ba6c564
@ -1,27 +1,28 @@
|
|||||||
---
|
---
|
||||||
description: Using Hasura with a DO Postgres database
|
description: Using Hasura with a DO Postgres database
|
||||||
title: 'Cloud: Using Hasura Cloud with a Digital Ocean Postgres database'
|
title: 'Cloud: Using Hasura Cloud with a DigitalOcean Postgres database'
|
||||||
keywords:
|
keywords:
|
||||||
- hasura
|
- hasura
|
||||||
- docs
|
- docs
|
||||||
- existing database
|
- existing database
|
||||||
- guide
|
- guide
|
||||||
- digital ocean
|
- digital ocean
|
||||||
sidebar_label: Digital Ocean Postgres
|
- digitalocean
|
||||||
|
sidebar_label: DigitalOcean Postgres
|
||||||
sidebar_position: 10
|
sidebar_position: 10
|
||||||
---
|
---
|
||||||
|
|
||||||
import Thumbnail from '@site/src/components/Thumbnail';
|
import Thumbnail from '@site/src/components/Thumbnail';
|
||||||
import HeadingIcon from '@site/src/components/HeadingIcon';
|
import HeadingIcon from '@site/src/components/HeadingIcon';
|
||||||
|
|
||||||
# Connecting Hasura to a Digital Ocean Postgres Database
|
# Connecting Hasura to a DigitalOcean Postgres Database
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
This guide explains how to connect a new or existing
|
This guide explains how to connect a new or existing
|
||||||
[Digital Ocean Postgres](https://www.digitalocean.com/products/managed-databases-postgresql) database to a Hasura
|
[DigitalOcean Postgres](https://www.digitalocean.com/products/managed-databases-postgresql) database to a Hasura
|
||||||
instance, either on [Hasura Cloud](https://cloud.hasura.io) or via one of our
|
instance, either on [Hasura Cloud](https://cloud.hasura.io) or via one of our
|
||||||
[self-hosted](/deployment/deployment-guides/index.mdx) solutions. If you're exploring Digital Ocean Postgres and are
|
[self-hosted](/deployment/deployment-guides/index.mdx) solutions. If you're exploring DigitalOcean Postgres and are
|
||||||
interested in migrating an existing Postgres database - such as from Heroku - check out their
|
interested in migrating an existing Postgres database - such as from Heroku - check out their
|
||||||
[docs](https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/) before continuing below.
|
[docs](https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/) before continuing below.
|
||||||
|
|
||||||
@ -50,20 +51,20 @@ Postgres Database URL. We'll create this in the next step and then come back her
|
|||||||
|
|
||||||
<Thumbnail src="/img/cloud-dbs/existing-db-setup.png" alt="Hasura Cloud database setup" width="700px" />
|
<Thumbnail src="/img/cloud-dbs/existing-db-setup.png" alt="Hasura Cloud database setup" width="700px" />
|
||||||
|
|
||||||
## Step 3: Create a Postgres DB on Digital Ocean {#create-pg-db-do}
|
## Step 3: Create a Postgres DB on DigitalOcean {#create-pg-db-do}
|
||||||
|
|
||||||
Log into [Digital Ocean](https://cloud.digitalocean.com/).
|
Log into [DigitalOcean](https://cloud.digitalocean.com/).
|
||||||
|
|
||||||
On the top right, click the `Create` button. Then click on `Databases`:
|
On the top right, click the `Create` button. Then click on `Databases`:
|
||||||
|
|
||||||
<Thumbnail src="/img/cloud-dbs/do/create-database.png" alt="Create database on Digital Ocean" />
|
<Thumbnail src="/img/cloud-dbs/do/create-database.png" alt="Create database on DigitalOcean" />
|
||||||
|
|
||||||
Scroll down and choose a `Cluster configuration`, as well as a `Datacenter` based on your requirements.
|
Scroll down and choose a `Cluster configuration`, as well as a `Datacenter` based on your requirements.
|
||||||
|
|
||||||
Scroll to the bottom and choose a unique database cluster name. Also, select a project the new database will be
|
Scroll to the bottom and choose a unique database cluster name. Also, select a project the new database will be
|
||||||
associated with.
|
associated with.
|
||||||
|
|
||||||
<Thumbnail src="/img/cloud-dbs/do/cluster-name.png" alt="Select cluster name for database on Digital Ocean" />
|
<Thumbnail src="/img/cloud-dbs/do/cluster-name.png" alt="Select cluster name for database on DigitalOcean" />
|
||||||
|
|
||||||
Then click `Create a Database Cluster`.
|
Then click `Create a Database Cluster`.
|
||||||
|
|
||||||
@ -71,11 +72,11 @@ Then click `Create a Database Cluster`.
|
|||||||
|
|
||||||
Navigate to the database cluster's `Overview` page:
|
Navigate to the database cluster's `Overview` page:
|
||||||
|
|
||||||
<Thumbnail src="/img/cloud-dbs/do/db-settings.png" alt="Navigate to database settings in Digital Ocean" />
|
<Thumbnail src="/img/cloud-dbs/do/db-settings.png" alt="Navigate to database settings in DigitalOcean" />
|
||||||
|
|
||||||
Scroll down to `Trusted sources` and click the `Edit` button:
|
Scroll down to `Trusted sources` and click the `Edit` button:
|
||||||
|
|
||||||
<Thumbnail src="/img/cloud-dbs/do/edit-trusted-sources.png" alt="Edit trusted sources for database in Digital Ocean" />
|
<Thumbnail src="/img/cloud-dbs/do/edit-trusted-sources.png" alt="Edit trusted sources for database in DigitalOcean" />
|
||||||
|
|
||||||
If you're using Hasura Cloud, you can quickly find your IP address from the `Hasura Cloud IP` field on the project's
|
If you're using Hasura Cloud, you can quickly find your IP address from the `Hasura Cloud IP` field on the project's
|
||||||
details view:
|
details view:
|
||||||
@ -91,7 +92,7 @@ service.
|
|||||||
|
|
||||||
Enter the Hasura IP address that you copied:
|
Enter the Hasura IP address that you copied:
|
||||||
|
|
||||||
<Thumbnail src="/img/cloud-dbs/do/add-hasura-ip.png" alt="Add Hasura IP to database in Digital Ocean" width="700px" />
|
<Thumbnail src="/img/cloud-dbs/do/add-hasura-ip.png" alt="Add Hasura IP to database in DigitalOcean" width="700px" />
|
||||||
|
|
||||||
Then click `Save`.
|
Then click `Save`.
|
||||||
|
|
||||||
@ -112,13 +113,13 @@ postgresql://<user-name>:<password>@<public-ip>:<postgres-port>/<db>?sslmode=req
|
|||||||
|
|
||||||
To get it, navigate to the database cluster's `Overview` page:
|
To get it, navigate to the database cluster's `Overview` page:
|
||||||
|
|
||||||
<Thumbnail src="/img/cloud-dbs/do/db-overview.png" alt="Navigate to database overview in Digital Ocean" />
|
<Thumbnail src="/img/cloud-dbs/do/db-overview.png" alt="Navigate to database overview in DigitalOcean" />
|
||||||
|
|
||||||
Scroll down to `Connection details`. Select `Public network` on the left and `Connection string` on the right.
|
Scroll down to `Connection details`. Select `Public network` on the left and `Connection string` on the right.
|
||||||
|
|
||||||
<Thumbnail
|
<Thumbnail
|
||||||
src="/img/cloud-dbs/do/connection-string.png"
|
src="/img/cloud-dbs/do/connection-string.png"
|
||||||
alt="Get the database connection string in Digital Ocean"
|
alt="Get the database connection string in DigitalOcean"
|
||||||
width="600px"
|
width="600px"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ to help you:
|
|||||||
- [AWS RDS Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Migrating.html)
|
- [AWS RDS Aurora](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Migrating.html)
|
||||||
- [AWS RDS Postgres](https://aws.amazon.com/getting-started/hands-on/move-to-managed/migrate-postgresql-to-amazon-rds/)
|
- [AWS RDS Postgres](https://aws.amazon.com/getting-started/hands-on/move-to-managed/migrate-postgresql-to-amazon-rds/)
|
||||||
- [Azure Postgres](https://learn.microsoft.com/en-us/azure/dms/tutorial-postgresql-azure-postgresql-online-portal)
|
- [Azure Postgres](https://learn.microsoft.com/en-us/azure/dms/tutorial-postgresql-azure-postgresql-online-portal)
|
||||||
- [Digital Ocean Postgres](https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/)
|
- [DigitalOcean Postgres](https://docs.digitalocean.com/products/databases/postgresql/how-to/migrate/)
|
||||||
- [EnterpriseDB BigAnimal Postgres](https://www.enterprisedb.com/docs/biganimal/latest/migration/cold_migration/)
|
- [EnterpriseDB BigAnimal Postgres](https://www.enterprisedb.com/docs/biganimal/latest/migration/cold_migration/)
|
||||||
- [GCP Postgres](https://cloud.google.com/database-migration/docs/postgres)
|
- [GCP Postgres](https://cloud.google.com/database-migration/docs/postgres)
|
||||||
- [TimescaleDB](https://docs.timescale.com/timescaledb/latest/how-to-guides/migrate-data/)
|
- [TimescaleDB](https://docs.timescale.com/timescaledb/latest/how-to-guides/migrate-data/)
|
||||||
|
@ -107,9 +107,9 @@ specific cloud vendors.
|
|||||||
<VersionedLink to="/databases/connect-db/cloud-databases/digital-ocean">
|
<VersionedLink to="/databases/connect-db/cloud-databases/digital-ocean">
|
||||||
<div className="card-wrapper">
|
<div className="card-wrapper">
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<img src={DO} title="Digital Ocean Postgres" alt="Connect DO Postgres to Hasura" />
|
<img src={DO} title="DigitalOcean Postgres" alt="Connect DO Postgres to Hasura" />
|
||||||
</div>
|
</div>
|
||||||
<h5>Digital Ocean Postgres</h5>
|
<h5>DigitalOcean Postgres</h5>
|
||||||
</div>
|
</div>
|
||||||
</VersionedLink>
|
</VersionedLink>
|
||||||
<VersionedLink to="/databases/connect-db/cloud-databases/elephant">
|
<VersionedLink to="/databases/connect-db/cloud-databases/elephant">
|
||||||
|
@ -31,6 +31,8 @@ Hasura GraphQL Engine supports:
|
|||||||
- [Citus / Hyperscale](/databases/postgres/citus-hyperscale-postgres/index.mdx)
|
- [Citus / Hyperscale](/databases/postgres/citus-hyperscale-postgres/index.mdx)
|
||||||
- [CockroachDB](/databases/postgres/cockroachdb/index.mdx)
|
- [CockroachDB](/databases/postgres/cockroachdb/index.mdx)
|
||||||
- [BigQuery](/databases/bigquery/index.mdx)
|
- [BigQuery](/databases/bigquery/index.mdx)
|
||||||
|
- [Snowflake](/databases/snowflake/index.mdx)
|
||||||
|
- [Amazon Athena](/databases/athena/index.mdx)
|
||||||
- **MySQL** (in preview) - See the [preview guide](/databases/mysql/getting-started.mdx)
|
- **MySQL** (in preview) - See the [preview guide](/databases/mysql/getting-started.mdx)
|
||||||
|
|
||||||
Hasura also [supports many other cloud database services](/databases/connect-db/cloud-databases/index.mdx).
|
Hasura also [supports many other cloud database services](/databases/connect-db/cloud-databases/index.mdx).
|
||||||
|
@ -6,6 +6,7 @@ keywords:
|
|||||||
- guide
|
- guide
|
||||||
- deployment
|
- deployment
|
||||||
- digital ocean
|
- digital ocean
|
||||||
|
- digitalocean
|
||||||
- marketplace
|
- marketplace
|
||||||
sidebar_position: 6
|
sidebar_position: 6
|
||||||
sidebar_label: Using DigitalOcean (one-click)
|
sidebar_label: Using DigitalOcean (one-click)
|
||||||
@ -21,7 +22,7 @@ The Hasura GraphQL Engine is available as a One-click app on the DigitalOcean Ma
|
|||||||
[Postgres](https://www.postgresql.org/) database and [Caddy](https://caddyserver.com/) webserver for easy and automatic
|
[Postgres](https://www.postgresql.org/) database and [Caddy](https://caddyserver.com/) webserver for easy and automatic
|
||||||
HTTPS using [Let's Encrypt](https://letsencrypt.org/).
|
HTTPS using [Let's Encrypt](https://letsencrypt.org/).
|
||||||
|
|
||||||
## Deploying Hasura on Digital Ocean
|
## Deploying Hasura on DigitalOcean
|
||||||
|
|
||||||
### Step 1: Create a Hasura One-click Droplet
|
### Step 1: Create a Hasura One-click Droplet
|
||||||
|
|
||||||
@ -38,7 +39,7 @@ create tables, explore GraphQL APIs etc. Note that it might take 1 or 2 minutes
|
|||||||
|
|
||||||
The `Droplet IP` is highlighted in the image below:
|
The `Droplet IP` is highlighted in the image below:
|
||||||
|
|
||||||
<Thumbnail src="/img/deployment/dashboard-digital-ocean.png" alt="Dashboard for digital ocean droplet" />
|
<Thumbnail src="/img/deployment/dashboard-digital-ocean.png" alt="Dashboard for DigitalOcean droplet" />
|
||||||
|
|
||||||
The Hasura Console will be at:
|
The Hasura Console will be at:
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ Choose from the full list of deployment guides:
|
|||||||
- [Deploy using Hasura Cloud](/getting-started/getting-started-cloud.mdx) (**recommended**)
|
- [Deploy using Hasura Cloud](/getting-started/getting-started-cloud.mdx) (**recommended**)
|
||||||
- [Deploy using Docker](/deployment/deployment-guides/docker.mdx)
|
- [Deploy using Docker](/deployment/deployment-guides/docker.mdx)
|
||||||
- [Deploy using Kubernetes](/deployment/deployment-guides/kubernetes.mdx)
|
- [Deploy using Kubernetes](/deployment/deployment-guides/kubernetes.mdx)
|
||||||
- [Deploy using Digital Ocean One-click App on Marketplace](/deployment/deployment-guides/digital-ocean-one-click.mdx)
|
- [Deploy using DigitalOcean One-click App on Marketplace](/deployment/deployment-guides/digital-ocean-one-click.mdx)
|
||||||
- [Deploy using Azure Container Instances with Postgres](/deployment/deployment-guides/azure-container-instances-postgres.mdx)
|
- [Deploy using Azure Container Instances with Postgres](/deployment/deployment-guides/azure-container-instances-postgres.mdx)
|
||||||
- [Deploy using Google Cloud Platform with Kubernetes engine and Cloud SQL](/deployment/deployment-guides/google-kubernetes-engine-cloud-sql.mdx)
|
- [Deploy using Google Cloud Platform with Kubernetes engine and Cloud SQL](/deployment/deployment-guides/google-kubernetes-engine-cloud-sql.mdx)
|
||||||
- [Deploy using Instant GraphQL on AWS RDS (blog)](https://hasura.io/blog/instant-graphql-on-aws-rds-1edfb85b5985/)
|
- [Deploy using Instant GraphQL on AWS RDS (blog)](https://hasura.io/blog/instant-graphql-on-aws-rds-1edfb85b5985/)
|
||||||
|
@ -141,7 +141,7 @@ Some points to keep in mind to ensure this works:
|
|||||||
|
|
||||||
1. The Postgres server should accept connections over the internet. You can follow
|
1. The Postgres server should accept connections over the internet. You can follow
|
||||||
[this guide](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-20-04) to
|
[this guide](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-20-04) to
|
||||||
set up a Postgres server on a Digital Ocean droplet or on a VM provided by another vendor of your choice.
|
set up a Postgres server on a DigitalOcean droplet or on a VM provided by another vendor of your choice.
|
||||||
|
|
||||||
:::info Note
|
:::info Note
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Based on your deployment method, the Hasura GraphQL Engine logs can be accessed
|
|||||||
|
|
||||||
- [On Docker](/deployment/deployment-guides/docker.mdx#docker-logs)
|
- [On Docker](/deployment/deployment-guides/docker.mdx#docker-logs)
|
||||||
- [On Kubernetes](/deployment/deployment-guides/kubernetes.mdx#kubernetes-logs)
|
- [On Kubernetes](/deployment/deployment-guides/kubernetes.mdx#kubernetes-logs)
|
||||||
- [On Digital Ocean](/deployment/deployment-guides/digital-ocean-one-click.mdx#do-logs)
|
- [On DigitalOcean](/deployment/deployment-guides/digital-ocean-one-click.mdx#do-logs)
|
||||||
- [On Azure](/deployment/deployment-guides/azure-container-instances-postgres.mdx#azure-logs)
|
- [On Azure](/deployment/deployment-guides/azure-container-instances-postgres.mdx#azure-logs)
|
||||||
- [On Google Cloud & Kubernetes](/deployment/deployment-guides/google-kubernetes-engine-cloud-sql.mdx#gc-kubernetes-logs)
|
- [On Google Cloud & Kubernetes](/deployment/deployment-guides/google-kubernetes-engine-cloud-sql.mdx#gc-kubernetes-logs)
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ access to your GraphQL endpoint and the Hasura Console:
|
|||||||
- Hasura Cloud projects have a randomly generated admin secret added by default at the time of creation.
|
- Hasura Cloud projects have a randomly generated admin secret added by default at the time of creation.
|
||||||
- [For Docker](/deployment/deployment-guides/docker.mdx#docker-secure)
|
- [For Docker](/deployment/deployment-guides/docker.mdx#docker-secure)
|
||||||
- [For Kubernetes](/deployment/deployment-guides/kubernetes.mdx#kubernetes-secure)
|
- [For Kubernetes](/deployment/deployment-guides/kubernetes.mdx#kubernetes-secure)
|
||||||
- [For Digital Ocean](/deployment/deployment-guides/digital-ocean-one-click.mdx#digital-ocean-secure)
|
- [For DigitalOcean](/deployment/deployment-guides/digital-ocean-one-click.mdx#digital-ocean-secure)
|
||||||
|
|
||||||
:::info Note
|
:::info Note
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ the GraphQL Engine version you're running:
|
|||||||
|
|
||||||
- [Update on Docker](/deployment/deployment-guides/docker.mdx#docker-update)
|
- [Update on Docker](/deployment/deployment-guides/docker.mdx#docker-update)
|
||||||
- [Update on Kubernetes](/deployment/deployment-guides/kubernetes.mdx#kubernetes-update)
|
- [Update on Kubernetes](/deployment/deployment-guides/kubernetes.mdx#kubernetes-update)
|
||||||
- [Update on Digital Ocean](/deployment/deployment-guides/digital-ocean-one-click.mdx#do-updating)
|
- [Update on DigitalOcean](/deployment/deployment-guides/digital-ocean-one-click.mdx#do-updating)
|
||||||
|
|
||||||
:::info No-touch Engine Update in Hasura Cloud
|
:::info No-touch Engine Update in Hasura Cloud
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ guides to get the database connection URL and any other steps required to ensure
|
|||||||
- [AWS RDS Aurora Postgres](/databases/connect-db/cloud-databases/aws-aurora.mdx)
|
- [AWS RDS Aurora Postgres](/databases/connect-db/cloud-databases/aws-aurora.mdx)
|
||||||
- [AWS RDS Postgres](/databases/connect-db/cloud-databases/aws-postgres.mdx)
|
- [AWS RDS Postgres](/databases/connect-db/cloud-databases/aws-postgres.mdx)
|
||||||
- [Azure Postgres](/databases/connect-db/cloud-databases/azure.mdx)
|
- [Azure Postgres](/databases/connect-db/cloud-databases/azure.mdx)
|
||||||
- [Digital Ocean Postgres](/databases/connect-db/cloud-databases/digital-ocean.mdx)
|
- [DigitalOcean Postgres](/databases/connect-db/cloud-databases/digital-ocean.mdx)
|
||||||
- [GCP Postgres](/databases/connect-db/cloud-databases/gcp.mdx)
|
- [GCP Postgres](/databases/connect-db/cloud-databases/gcp.mdx)
|
||||||
- [TimescaleDB Cloud](/databases/connect-db/cloud-databases/timescale-cloud.mdx)
|
- [TimescaleDB Cloud](/databases/connect-db/cloud-databases/timescale-cloud.mdx)
|
||||||
- [YugabyteDB](/databases/connect-db/cloud-databases/yugabyte.mdx)
|
- [YugabyteDB](/databases/connect-db/cloud-databases/yugabyte.mdx)
|
||||||
|
Loading…
Reference in New Issue
Block a user