diff --git a/README.md b/README.md index cf12733..e4764e1 100644 --- a/README.md +++ b/README.md @@ -347,6 +347,7 @@ A collection of delicious docker recipes. - [x] gogs/gogs :cn: - [x] gotify/server - [x] grafana/grafana +- [x] hasura/graphql-engine - [x] haproxy - [x] h2non/imaginary - [x] jellyfin/jellyfin diff --git a/graphql-engine/README.md b/graphql-engine/README.md new file mode 100644 index 0000000..9b61622 --- /dev/null +++ b/graphql-engine/README.md @@ -0,0 +1,8 @@ +Hasura GraphQL Engine +===================== + +[Hasura][1] is an open source product that accelerates API development by 10x by +giving you GraphQL or REST APIs with built in authorization on your data, +instantly. + +[1]: https://hasura.io/docs/latest/graphql/core/index.html diff --git a/graphql-engine/docker-compose.yml b/graphql-engine/docker-compose.yml new file mode 100644 index 0000000..d317ca9 --- /dev/null +++ b/graphql-engine/docker-compose.yml @@ -0,0 +1,30 @@ +version: "3.8" + +services: + + graphql-engine: + image: hasura/graphql-engine:v2.1.0 + ports: + - "8080:8080" + environment: + HASURA_GRAPHQL_DATABASE_URL: postgres://hasura:hasura@postgres:5432/hasura + HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://hasura:hasura@postgres:5432/hasura + HASURA_GRAPHQL_ENABLE_CONSOLE: "true" + HASURA_GRAPHQL_DEV_MODE: "false" + HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log + HASURA_GRAPHQL_ADMIN_SECRET: secret + depends_on: + - postgres + restart: unless-stopped + + postgres: + image: postgres:14-alpine + ports: + - "5432:5432" + volumes: + - ./data:/var/lib/postgresql/data + environment: + POSTGRES_USER: hasura + POSTGRES_PASSWORD: hasura + POSTGRES_DB: hasura + restart: unless-stopped