update hasura

This commit is contained in:
ManUtopiK 2022-10-20 22:12:01 +02:00
parent 057859503e
commit c3a7e91cf0
3 changed files with 31 additions and 5 deletions

View File

@ -1,4 +1,27 @@
# pgadmin
# Super compose
1. add new server
2. host is : postgres
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.

View File

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

View File

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