A graphql interface using hasura and postgres for the MySQL world sample dataset.
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/
You can use the Kubernetes Deployment examples to start a pod with a postgres database and hasura.
podman play kube examples/kube-deployment.yaml
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