docker-compose up
http://<base_url>/v1/graphql
(e.g.)
local:
http://localhost:8080/v1/graphql
prod:
https://<YOUR-SERVER-URL>/v1/graphql
cd hasura/
make console
now console is running on http://localhost:9695/
migration
cd hasura/
make migrate
seeding
cd hasura/
make seed
- use cli-migration image
hasura/graphql-engine:v2.7.0.cli-migrations-v3
- mount migrations/ and metadata/ on specific directly
# Dockerfile
COPY ./migrations /hasura-migrations
COPY ./metadata /hasura-metadata
Hasura automatically detects files in hasura-migrations and hasura-metadata, and apply migrations on starting the server.