diff --git a/.env.example b/.env.example index 18f17db..a07966b 100644 --- a/.env.example +++ b/.env.example @@ -7,8 +7,9 @@ DATALAYER_PG_DATABASE=datalayer-postgres DATALAYER_POSTGRES_EXPOSED_PORT=5434 ###################################################### -############### DATALAYER HASURA API ################### +############### DATALAYER HASURA API ################# ###################################################### +#for reference on Hasura configuration, see: https://hasura.io/docs/2.0/deployment/graphql-engine-flags/reference/ DATALAYER_HASURA_EXPOSED_PORT=8082 DATALAYER_HASURA_ENABLE_CONSOLE=true DATALAYER_HASURA_ADMIN_SECRET=my-admin-secret @@ -18,6 +19,7 @@ DATALAYER_HASURA_ENABLE_TELEMETRY=false # HASURA_GRAPHQL_METADATA_DATABASE_EXTENSIONS_SCHEMA: "chain_data_schema_1" ## enable debugging mode. It is recommended to disable this in production DATALAYER_HASURA_DEV_MODE=true +DATALAYER_HASURA_ADMIN_INTERNAL_ERRORS=true ## uncomment next line to run console offline (i.e load console assets from server instead of CDN) # HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets diff --git a/docker-compose.yaml b/docker-compose.yaml index 6726d24..80dcb5a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -21,7 +21,7 @@ services: retries: 5 api-hasura: - image: hasura/graphql-engine:latest + image: hasura/graphql-engine:v2.44.0 ports: - "${DATALAYER_HASURA_EXPOSED_PORT:-8082}:8080" restart: always @@ -42,7 +42,7 @@ services: HASURA_GRAPHQL_DEV_MODE: ${DATALAYER_HASURA_DEV_MODE:-true} HASURA_GRAPHQL_ENABLED_LOG_TYPES: "startup, http-log, webhook-log, websocket-log, query-log" HASURA_GRAPHQL_ENABLED_APIS: "graphql,metrics" - HASURA_GRAPHQL_ADMIN_INTERNAL_ERRORS: "true" + HASURA_GRAPHQL_ADMIN_INTERNAL_ERRORS: ${DATALAYER_HASURA_ADMIN_INTERNAL_ERRORS:-true} ## uncomment next line to run console offline (i.e load console assets from server instead of CDN) # HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets depends_on: