1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

add graphql-engine

This commit is contained in:
kev 2021-12-16 19:18:55 +08:00
parent 64717a6a11
commit fb1af55838
3 changed files with 39 additions and 0 deletions

View File

@ -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

8
graphql-engine/README.md Normal file
View File

@ -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

View File

@ -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