You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This Docker Compose setup runs [Hasura GraphQL Engine](https://github.com/hasura/graphql-engine) along with Postgres and [pgAdmin4](https://www.pgadmin.org/) using `docker-compose`.
- Clone this repo on a machine where you'd like to deploy graphql engine
13
+
- Edit `docker-compose.yaml` and change `PGADMIN_DEFAULT_EMAIL` and `PGADMIN_DEFAULT_PASSWORD` to something secure (default pgAdmin login email/password) default value for above variables are:
- Read more `Environment Variables` here: https://hub.docker.com/r/dpage/pgadmin4/
17
+
- Edit `docker-compose.yaml` and change `HASURA_GRAPHQL_ACCESS_KEY` to something secure
18
+
-`docker-compose up -d`
19
+
- Navigate to `http://localhost:5050`, login and add a new server with the following parameters:
20
+
General - Name: Hasura
21
+
Connection - Host: `hasura`
22
+
Username: `postgres`
23
+
Password: leave empty
24
+
25
+
## Important endpoints
26
+
27
+
- GraphQL endpoint will be `http://localhost:8080/v1alpha1/graphql`
28
+
- Hasura Console will be available on `http://localhost:8080/console`
29
+
- pgAdmin will be available on `http://localhost:5050`
30
+
31
+
32
+
## Connecting to External Postgres
33
+
34
+
If you want to connect to an external/existing postgres database, replace `HASURA_GRAPHQL_DATABASE_URL` in `docker-compose.yaml` with your database url.
35
+
36
+
**Note: localhost will resolve to the container ip inside a docker container, not the host ip**
0 commit comments