Skip to content

Template of Dockerfile and compose yaml to build hasura graphql engine

Notifications You must be signed in to change notification settings

zett-8/hasura-graphql-engine-docker-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hasura graphql engine Docker template

Run graphql server

docker-compose up

Graphql endpoint

http://<base_url>/v1/graphql

(e.g.)
local: http://localhost:8080/v1/graphql
prod: https://<YOUR-SERVER-URL>/v1/graphql

Open console

cd hasura/
make console

now console is running on http://localhost:9695/

Commands

migration

cd hasura/
make migrate

seeding

cd hasura/
make seed

Enable auto migration

  1. use cli-migration image
hasura/graphql-engine:v2.7.0.cli-migrations-v3
  1. 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.

About

Template of Dockerfile and compose yaml to build hasura graphql engine

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages