Hi I am setting up Hasura, the normal setup looks like this:

docker run -d --net=host \
-e HASURA_GRAPHQL_DATABASE_URL=postgres://username:password@hostname:port/dbname \

I couldn't find in the docs a way to use multiple databases within the same instance, is it even possible?

  • I would recommend reaching out to the developers of Hasura. You might have to purchase a license to receive support though. Reading through the documentation I would say: "No." But I'm not an avid Hasura user. – John aka hot2use May 20 at 13:10
  • Sounds like an X-Y Problemâ„¢ to me. What exactly do you hope to achieve by "multiple databases within the same instance", and instance of what? – mustaccio May 20 at 15:57
  • By same instance I mean running in the same container. I have many data bases with the same structure (tables, columns) for many different clients. The idea was being able to query all using namespaces rather than creating a single container for each client. But never mind.. seems like multiple Databases is not a supported feature in Hasura anyway. – Ander May 22 at 6:07

Nope, It's not supported at the moment. You would have to create as many Hasura instances as the number of databases you have. Then use one as the main endpoint and add the others as remote schemas.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.