New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to import Schema.sql with Hasura docker-compose #12
Comments
Hey @mnlbox Do you have access to your Postgres db? |
@tirumaraiselvan I run my Hasura instance with this guide: How we can access to this Postgres? 🤔 |
@mnlbox Ah! Seems like the Postgres container is not exposed to localhost in docker-compose manifest. We will fix it. In the meanwhile, you can go to Hasura console -> Data tab -> Run SQL and copy paste the contents of schema.sql there. And execute. |
@tirumaraiselvan Thanks man. |
Sorry, I accidently closed the issue. Do check out my comment with the
workaround.
…On Wed, Jan 23, 2019, 2:28 PM mnlbox ***@***.*** wrote:
@tirumaraiselvan <https://github.com/tirumaraiselvan> Thanks man.
Maybe related: hasura/graphql-engine#1424
<hasura/graphql-engine#1424>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIQyEigtEUFITwTD_Un8bKTVa1xvLtsSks5vGCQogaJpZM4aOJ3_>
.
|
Thanks @tirumaraiselvan I think expose Postgres and pgAdmin to local can be useful for this purpose 😉 |
Resolved |
@tirumaraiselvan Can you guide a little? |
@mnlbox You can use pgadmin like here: https://github.com/hasura/graphql-engine/blob/master/install-manifests/docker-compose-pgadmin/docker-compose.yaml Or you can use |
For anyone else who has the same question as @mnlbox, I found a fairly easy way to achieve this.
With Hasura and Postgres running via this
Side note: if you decide to run the 3factor-example project like this, you will probably run into an issue where the event triggers fail. In the event response, I was seeing an error of The solution is to modify the event triggers so that Hasura within the Docker container can connect to the Express server on localhost, which is discussed in https://docs.hasura.io/1.0/graphql/manual/deployment/docker/index.html#network-config. On macOS, the event trigger would be updated by replacing |
I've made a fork that includes all of the above changes (and some other fixes for this project) and submitted a pull request at #17. Feel free to use this fork if you'd prefer to use a |
Hi @tirumaraiselvan,
I install Hasura with docker-compose and want to do step bu step to implement this example app.
Can you guide me how to import Schema.sql with Hasura docker-compose?
In this example guide you work with a local Postgres.
/CC: @wawhal, @surendran82
The text was updated successfully, but these errors were encountered: