From c3a7e91cf07770554bb06a5646ebad6bf139e15c Mon Sep 17 00:00:00 2001 From: ManUtopiK Date: Thu, 20 Oct 2022 22:12:01 +0200 Subject: [PATCH] update hasura --- README.md | 29 ++++++++++++++++++++++++++--- composes/hasura/compose.yml | 5 ++++- docker-compose.yml | 2 +- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5f77909..b72ed61 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,27 @@ -# pgadmin +# Super compose -1. add new server -2. host is : postgres \ No newline at end of file +A preconfigured docker compose with awesome open source tool : + +- a postgresql database with pgadmin +- **hasura** : provide a graphql api on postgresql database and all services listed above +- **n8n** : an automation tools + +## Configuring pgAdmin + +1. open `new server` popup +2. config postgres + +## Used ports + +- pgadmin : `5050` +- hasura : `8080` + +## Hasura console + +Launch console from local : + + hasura console --admin-secret $ADMIN_PASSWORD + // or + hausar console --no-browser --admin-secret $ADMIN_PASSWORD + +Alternatively, you can uncomment `admin_secret` in file `hasura/config.yaml` and set your password. diff --git a/composes/hasura/compose.yml b/composes/hasura/compose.yml index c708d31..2a1f0f6 100644 --- a/composes/hasura/compose.yml +++ b/composes/hasura/compose.yml @@ -1,13 +1,16 @@ services: hasura: container_name: $APP_NAME-hasura - image: hasura/graphql-engine:v2.12.0 + image: hasura/graphql-engine:v2.13.0 #.cli-migrations-v3 ports: - 8080:8080 depends_on: postgres: condition: service_healthy restart: always + # volumes: + # - ../../hasura/migrations:/hasura-migrations + # - ../../hasura/metadata:/hasura-metadata environment: HASURA_GRAPHQL_DATABASE_URL: postgres://${ADMIN_USER}:${ADMIN_PASSWORD}@postgres:5432/${POSTGRES_DB:-$APP_NAME} ## enable the console served by server diff --git a/docker-compose.yml b/docker-compose.yml index 3b3c77b..150166c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: extends: file: composes/postgres/compose.yml service: postgres - # Expose port to external host + # Expose postgres to external host # ports: # - 5432:5432