We'll walk through using docker-compose to run Hasura and Postgres containerized. Then we'll create a Hasura project using the Hasura CLI. Finally we'll add in a database URL using environment variables using the multiple database connection ability with Hasura.
Ex following steps 1-3 @ https://hasura.io/docs/latest/graphql/core/getting-started/docker-simple.html work just fine, sans the Hasura CLI.
Interesting, I'm unable to add the database when accessing the Hasura console generated by
hasura console
with this setup... (Lots of Go errors).If I access the exact same setup via
http://localhost:8080/
, Hasura can connect to the database just fine using the env var. Puzzling to me 😅