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
- Host: GitHub
- URL: https://github.com/zett-8/hasura-graphql-engine-docker-template
- Owner: zett-8
- Created: 2022-06-05T18:52:57.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-20T07:42:15.000Z (about 4 years ago)
- Last Synced: 2026-04-04T13:34:57.857Z (3 months ago)
- Topics: docker, docker-compose, graphql, hasura, hasura-graphql-engine
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.