Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.66 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.66 KB

Hasura World Database Demo

Docker Repository on Quay.io

A graphql interface using hasura and postgres for the MySQL world sample dataset.

Usage Examples

For hasura configuration options and usage, please refer to their wonderful documentation here. In the following scenarios, the api and console will be available at http://127.0.0.1:8080/

Podman

You can use the Kubernetes Deployment examples to start a pod with a postgres database and hasura.

podman play kube examples/kube-deployment.yaml

Docker

In this scenario, we assume that you already have a database running that can be reached from within the container.

# obviously secret is secret here and is not intended to be "secure" as this is a demo app
docker run --rm -it -p 8080:8080 \
    -e HASURA_GRAPHQL_DATABASE_URL="postgres://hasura:hasura@postgres-host-addr:5432/hasura" \
    -e HASURA_GRAPHQL_ENABLE_CONSOLE="true" \
    -e HASURA_GRAPHQL_ADMIN_SECRET="secret" \
    quay.io/twyla-ai/hasura-world-db:latest