An open API service indexing awesome lists of open source software.

https://github.com/zett-8/hasura-graphql-engine-docker-template

Template of Dockerfile and compose yaml to build hasura graphql engine
https://github.com/zett-8/hasura-graphql-engine-docker-template

docker docker-compose graphql hasura hasura-graphql-engine

Last synced: about 2 months ago
JSON representation

Template of Dockerfile and compose yaml to build hasura graphql engine

Awesome Lists containing this project

README

          

# Hasura graphql engine Docker template

## Run graphql server
```shell
docker-compose up
```

## Graphql endpoint
```text
http:///v1/graphql
```
(e.g.)
local:
http://localhost:8080/v1/graphql
prod:
https://\/v1/graphql

## Open console
```shell
cd hasura/
make console
```

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

## Commands
migration
```shell
cd hasura/
make migrate
```
seeding
```shell
cd hasura/
make seed
```

## Enable auto migration
1. use cli-migration image
```text
hasura/graphql-engine:v2.7.0.cli-migrations-v3
```

2. mount migrations/ and metadata/ on specific directly
```dockerfile
# 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.