Skip to content

Instantly share code, notes, and snippets.

@dan-mckay
Last active October 2, 2019 15:56
Show Gist options
  • Save dan-mckay/a4ba70354ca8acf5cba4fd43cf8422ed to your computer and use it in GitHub Desktop.
Save dan-mckay/a4ba70354ca8acf5cba4fd43cf8422ed to your computer and use it in GitHub Desktop.
docker hasura setup

Docker - Local Hasura & Postgres

https://github.com/hasura/graphql-engine/tree/master/install-manifests

Set up Hasura and Postgres on your local machine. First get the docker compose file:

# in a new directory
wget https://raw.githubusercontent.com/hasura/graphql-engine/master/install-manifests/docker-compose/docker-compose.yaml

Then run it:

docker-compose up -d

Check if the containers are running:

$ docker ps

CONTAINER ID IMAGE                 ... CREATED STATUS PORTS          ...
097f58433a2b hasura/graphql-engine ... 1m ago  Up 1m  8080->8080/tcp ...
b0b1aac0508d postgres              ... 1m ago  Up 1m  5432/tcp       ...

You are good to go!

Head to http://localhost:8080/console to open the Hasura console.

Stopping the containers:

docker stop <CONTAINER ID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment