2022-10-20 15:41:56 +02:00
|
|
|
services:
|
2022-10-20 19:12:33 +02:00
|
|
|
hasura:
|
|
|
|
container_name: $APP_NAME-hasura
|
2022-10-20 22:12:01 +02:00
|
|
|
image: hasura/graphql-engine:v2.13.0 #.cli-migrations-v3
|
2022-10-20 19:12:33 +02:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
|
|
|
restart: always
|
2022-10-20 22:12:01 +02:00
|
|
|
# volumes:
|
|
|
|
# - ../../hasura/migrations:/hasura-migrations
|
|
|
|
# - ../../hasura/metadata:/hasura-metadata
|
2022-10-20 19:12:33 +02:00
|
|
|
environment:
|
|
|
|
HASURA_GRAPHQL_DATABASE_URL: postgres://${ADMIN_USER}:${ADMIN_PASSWORD}@postgres:5432/${POSTGRES_DB:-$APP_NAME}
|
|
|
|
## enable the console served by server
|
|
|
|
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
|
|
|
|
## enable debugging mode. It is recommended to disable this in production
|
|
|
|
HASURA_GRAPHQL_DEV_MODE: "true"
|
|
|
|
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
|
|
|
|
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET:-$ADMIN_PASSWORD}
|
|
|
|
HASURA_GRAPHQL_EXPERIMENTAL_FEATURES: "apollo_federation"
|
|
|
|
|
|
|
|
# N8N_DATABASE_URL: postgres://${POSTGRES_NON_ROOT_USER}:${POSTGRES_NON_ROOT_PASSWORD}@postgres:5432/n8n
|