mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
334a133573
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10104 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Rob Dominguez <24390149+robertjdominguez@users.noreply.github.com> GitOrigin-RevId: 836b823c13f62d9cfd7e1c1e6bcbfdd0c8f88b40
63 lines
2.4 KiB
YAML
63 lines
2.4 KiB
YAML
version: "3.7"
|
|
services:
|
|
redis:
|
|
image: redis:7
|
|
restart: always
|
|
# ports:
|
|
# - 6379:6379
|
|
postgres:
|
|
image: postgres:15
|
|
restart: always
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: postgrespassword
|
|
hasura:
|
|
image: hasura/graphql-engine:v2.31.0
|
|
restart: always
|
|
ports:
|
|
- 8080:8080
|
|
environment:
|
|
## Add your license key below
|
|
# HASURA_GRAPHQL_EE_LICENSE_KEY: ""
|
|
HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
|
|
## The metadata database for this Hasura GraphQL project. Can be changed to a managed postgres instance
|
|
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
|
|
# HASURA_GRAPHQL_READ_REPLICA_URLS: postgres://postgres:postgrespassword@postgres:5432/postgres
|
|
|
|
## Optional settings
|
|
## enable the console served by server
|
|
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
|
|
## enable required apis; metrics api exposes a prometheus endpoint, uncomment to enable
|
|
# HASURA_GRAPHQL_ENABLED_APIS: 'graphql,metadata,config,developer,pgdump,metrics'
|
|
## secure metrics endpoint with a secret, uncomment to enable
|
|
# HASURA_GRAPHQL_METRICS_SECRET: 'secret'
|
|
## enable debugging mode. It is recommended to disable this in production
|
|
HASURA_GRAPHQL_DEV_MODE: "true"
|
|
# HASURA_GRAPHQL_LOG_LEVEL: debug
|
|
## enable offline console assets if you wish to access console without internet connectivity
|
|
# HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: "/srv/console-assets"
|
|
HASURA_GRAPHQL_REDIS_URL: redis://redis:6379
|
|
HASURA_GRAPHQL_RATE_LIMIT_REDIS_URL: "redis://redis:6379"
|
|
HASURA_GRAPHQL_MAX_CACHE_SIZE: "200"
|
|
# Configures the connection to the Data Connector agent for Clickhouse by default
|
|
# You can also omit this and manually configure the same thing via the 'Data' tab, then 'Add Agent'
|
|
# in the Hasura console
|
|
HASURA_GRAPHQL_METADATA_DEFAULTS: '{"backend_configs":{"dataconnector":{"clickhouse":{"uri":"http://data-connector-agent:8080"}}}}'
|
|
depends_on:
|
|
data-connector-agent:
|
|
condition: service_healthy
|
|
data-connector-agent:
|
|
image: hasura/clickhouse-data-connector:v2.32.0
|
|
restart: always
|
|
ports:
|
|
- 8080:8081
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 5s
|
|
volumes:
|
|
db_data:
|