mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-12 14:05:16 +03:00
Update docker compose files, add graphql-data-connector
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8804 GitOrigin-RevId: 37d4ac91691857cd426bab550e2091b2b0311833
This commit is contained in:
parent
be67b0db59
commit
5b27561caa
0
cabal/cabal.project.dev
Normal file
0
cabal/cabal.project.dev
Normal file
@ -1,7 +1,7 @@
|
||||
version: '3.6'
|
||||
version: "3.6"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
image: postgres:15
|
||||
restart: always
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
@ -19,28 +19,28 @@ services:
|
||||
- --insecure
|
||||
- --accept-sql-without-tls
|
||||
ports:
|
||||
- '26257:26257'
|
||||
- "26257:26257"
|
||||
environment:
|
||||
COCKROACH_USER: 'root'
|
||||
COCKROACH_DATABASE: 'hasura'
|
||||
COCKROACH_USER: "root"
|
||||
COCKROACH_DATABASE: "hasura"
|
||||
volumes:
|
||||
- '${PWD}/cockroach-data:/cockroach/cockroach-data'
|
||||
- "${PWD}/cockroach-data:/cockroach/cockroach-data"
|
||||
|
||||
graphql-engine:
|
||||
image: hasura/graphql-engine:v2.23.0
|
||||
ports:
|
||||
- '8080:8080'
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- 'postgres'
|
||||
- 'cockroach'
|
||||
- "postgres"
|
||||
- "cockroach"
|
||||
restart: always
|
||||
environment:
|
||||
## postgres database to store Hasura metadata
|
||||
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
|
||||
## enable the console served by server
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' # set to "false" to disable console
|
||||
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_DEV_MODE: "true"
|
||||
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
|
||||
## 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
|
||||
|
@ -1,16 +1,16 @@
|
||||
version: '3.6'
|
||||
version: "3.6"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
image: postgres:15
|
||||
restart: always
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
- db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: postgrespassword
|
||||
graphql-engine:
|
||||
image: hasura/graphql-engine:v2.23.0
|
||||
depends_on:
|
||||
- "postgres"
|
||||
- "postgres"
|
||||
restart: always
|
||||
environment:
|
||||
## postgres database to store Hasura metadata
|
||||
@ -24,19 +24,19 @@ services:
|
||||
## uncomment next line to set an admin secret
|
||||
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
|
||||
command:
|
||||
- graphql-engine
|
||||
- serve
|
||||
- graphql-engine
|
||||
- serve
|
||||
caddy:
|
||||
image: caddy/caddy
|
||||
depends_on:
|
||||
- "graphql-engine"
|
||||
- "graphql-engine"
|
||||
restart: always
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_certs:/root/.caddy
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- caddy_certs:/root/.caddy
|
||||
volumes:
|
||||
db_data:
|
||||
caddy_certs:
|
||||
|
@ -1,7 +1,7 @@
|
||||
version: '3.6'
|
||||
version: "3.6"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
image: postgres:15
|
||||
restart: always
|
||||
volumes:
|
||||
- pg_data:/var/lib/postgresql/data
|
||||
@ -10,17 +10,17 @@ services:
|
||||
mssql:
|
||||
image: mcr.microsoft.com/mssql/server:2022-latest
|
||||
environment:
|
||||
ACCEPT_EULA: 'Y'
|
||||
ACCEPT_EULA: "Y"
|
||||
SA_PASSWORD: ${MSSQL_PASSWORD:-Password1}
|
||||
volumes:
|
||||
- mssql_data:/var/opt/mssql
|
||||
graphql-engine:
|
||||
image: hasura/graphql-engine:v2.23.0
|
||||
ports:
|
||||
- '8080:8080'
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- 'postgres'
|
||||
- 'mssql'
|
||||
- "postgres"
|
||||
- "mssql"
|
||||
restart: always
|
||||
environment:
|
||||
## postgres database to store Hasura metadata
|
||||
@ -28,9 +28,9 @@ services:
|
||||
## this env var can be used to add the above ms sql server database to Hasura as a data source. this can be removed/updated based on your needs
|
||||
MSSQL_DATABASE_URL: Driver={ODBC Driver 18 for SQL Server};Server=tcp:mssql,1433;Database=tempdb;Uid=sa;Pwd=Password1;Encrypt=optional
|
||||
## enable the console served by server
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' # set to "false" to disable console
|
||||
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_DEV_MODE: "true"
|
||||
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
|
||||
## 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
|
||||
|
@ -1,31 +1,31 @@
|
||||
version: '3.6'
|
||||
version: "3.6"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
image: postgres:15
|
||||
restart: always
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
- db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: postgrespassword
|
||||
graphql-engine:
|
||||
image: hasura/graphql-engine:pull5655-633f084f
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- "postgres"
|
||||
- "postgres"
|
||||
command:
|
||||
- graphql-engine
|
||||
- --mysql-host
|
||||
- <mysql-host>
|
||||
- --mysql-user
|
||||
- <mysql-user>
|
||||
- --mysql-port
|
||||
- <mysql-port>
|
||||
- --mysql-dbname
|
||||
- <mysql-dbname>
|
||||
- --mysql-password
|
||||
- <mysql-password>
|
||||
- serve
|
||||
- graphql-engine
|
||||
- --mysql-host
|
||||
- <mysql-host>
|
||||
- --mysql-user
|
||||
- <mysql-user>
|
||||
- --mysql-port
|
||||
- <mysql-port>
|
||||
- --mysql-dbname
|
||||
- <mysql-dbname>
|
||||
- --mysql-password
|
||||
- <mysql-password>
|
||||
- serve
|
||||
restart: always
|
||||
environment:
|
||||
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
|
||||
|
@ -1,19 +1,19 @@
|
||||
version: '3.6'
|
||||
version: "3.6"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
image: postgres:15
|
||||
restart: always
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
- db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: postgrespassword
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
restart: always
|
||||
depends_on:
|
||||
- postgres
|
||||
- postgres
|
||||
ports:
|
||||
- 5050:80
|
||||
- 5050:80
|
||||
## you can change pgAdmin default username/password with below environment variables
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: pgadmin@example.com
|
||||
@ -21,9 +21,9 @@ services:
|
||||
graphql-engine:
|
||||
image: hasura/graphql-engine:v2.23.0
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- "postgres"
|
||||
- "postgres"
|
||||
restart: always
|
||||
environment:
|
||||
## postgres database to store Hasura metadata
|
||||
|
@ -1,7 +1,7 @@
|
||||
version: '3.6'
|
||||
version: "3.6"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
image: postgres:15
|
||||
restart: always
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
@ -25,18 +25,18 @@ services:
|
||||
graphql-engine:
|
||||
image: hasura/graphql-engine:v2.23.0
|
||||
ports:
|
||||
- '8080:8080'
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- 'postgres'
|
||||
- 'yugabyte'
|
||||
- "postgres"
|
||||
- "yugabyte"
|
||||
restart: always
|
||||
environment:
|
||||
## postgres database to store Hasura metadata
|
||||
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
|
||||
## enable the console served by server
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' # set to "false" to disable console
|
||||
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_DEV_MODE: "true"
|
||||
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
|
||||
## 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
|
||||
|
@ -1,18 +1,16 @@
|
||||
version: '3.6'
|
||||
version: "3.6"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:14
|
||||
image: postgres:15
|
||||
restart: always
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
- db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: postgrespassword
|
||||
graphql-engine:
|
||||
image: hasura/graphql-engine:v2.23.0
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- "postgres"
|
||||
- "8080:8080"
|
||||
restart: always
|
||||
environment:
|
||||
## postgres database to store Hasura metadata
|
||||
@ -28,6 +26,25 @@ services:
|
||||
# HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
|
||||
## uncomment next line to set an admin secret
|
||||
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
|
||||
HASURA_GRAPHQL_METADATA_DEFAULTS: '{"backend_configs":{"dataconnector":{"athena":{"uri":"http://data-connector-agent:8081/api/v1/athena"},"mariadb":{"uri":"http://data-connector-agent:8081/api/v1/mariadb"},"mysqlgdc":{"uri":"http://data-connector-agent:8081/api/v1/mysql"},"oracle":{"uri":"http://data-connector-agent:8081/api/v1/oracle"},"snowflake":{"uri":"http://data-connector-agent:8081/api/v1/snowflake"}}}}'
|
||||
depends_on:
|
||||
data-connector-agent:
|
||||
condition: service_healthy
|
||||
data-connector-agent:
|
||||
image: hasura/graphql-data-connector:v2.23.0
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
environment:
|
||||
QUARKUS_LOG_LEVEL: ERROR # FATAL, ERROR, WARN, INFO, DEBUG, TRACE
|
||||
## https://quarkus.io/guides/opentelemetry#configuration-reference
|
||||
QUARKUS_OPENTELEMETRY_ENABLED: "false"
|
||||
## QUARKUS_OPENTELEMETRY_TRACER_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8081/api/v1/athena/health"]
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
volumes:
|
||||
db_data:
|
||||
|
||||
|
@ -2,7 +2,7 @@ version: '3.7'
|
||||
services:
|
||||
redis:
|
||||
image: redis:7
|
||||
restart: always
|
||||
restart: always
|
||||
# ports:
|
||||
# - 6379:6379
|
||||
postgres:
|
||||
@ -47,7 +47,7 @@ services:
|
||||
data-connector-agent:
|
||||
condition: service_healthy
|
||||
data-connector-agent:
|
||||
image: hasura/graphql-data-connector:v2.22.0
|
||||
image: hasura/graphql-data-connector:v2.23.0
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
|
@ -1,15 +1,15 @@
|
||||
version: '3.6'
|
||||
version: "3.6"
|
||||
services:
|
||||
redis:
|
||||
image: redis:latest
|
||||
restart: always
|
||||
ports:
|
||||
- '6379:6379'
|
||||
- "6379:6379"
|
||||
postgres:
|
||||
image: postgres:12
|
||||
image: postgres:15
|
||||
restart: always
|
||||
ports:
|
||||
- '5432:5432'
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
@ -17,14 +17,11 @@ services:
|
||||
graphql-engine:
|
||||
image: hasura/graphql-engine:v2.23.0
|
||||
ports:
|
||||
- '8080:8080'
|
||||
depends_on:
|
||||
- 'postgres'
|
||||
- 'redis'
|
||||
- "8080:8080"
|
||||
restart: always
|
||||
environment:
|
||||
## add your license key below
|
||||
# HASURA_GRAPHQL_EE_LICENSE_KEY: ''
|
||||
# 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_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
|
||||
@ -32,17 +29,55 @@ services:
|
||||
|
||||
## Optional settings:
|
||||
## enable the console served by server
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true'
|
||||
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_DEV_MODE: "true"
|
||||
# HASURA_GRAPHQL_LOG_LEVEL: debug
|
||||
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'
|
||||
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"
|
||||
HASURA_GRAPHQL_METADATA_DEFAULTS: '{"backend_configs":{"dataconnector":{"athena":{"uri":"http://data-connector-agent:8081/api/v1/athena"},"mariadb":{"uri":"http://data-connector-agent:8081/api/v1/mariadb"},"mysqlgdc":{"uri":"http://data-connector-agent:8081/api/v1/mysql"},"oracle":{"uri":"http://data-connector-agent:8081/api/v1/oracle"},"snowflake":{"uri":"http://data-connector-agent:8081/api/v1/snowflake"}}}}'
|
||||
depends_on:
|
||||
data-connector-agent:
|
||||
condition: service_healthy
|
||||
data-connector-agent:
|
||||
image: hasura/graphql-data-connector:v2.23.0
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
environment:
|
||||
QUARKUS_LOG_LEVEL: ERROR # FATAL, ERROR, WARN, INFO, DEBUG, TRACE
|
||||
## https://quarkus.io/guides/opentelemetry#configuration-reference
|
||||
QUARKUS_OPENTELEMETRY_ENABLED: "false"
|
||||
## QUARKUS_OPENTELEMETRY_TRACER_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8081/api/v1/athena/health"]
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
# jaeger:
|
||||
# image: jaegertracing/all-in-one:1.37
|
||||
# restart: always
|
||||
# ports:
|
||||
# - 5775:5775/udp
|
||||
# - 6831:6831/udp
|
||||
# - 6832:6832/udp
|
||||
# - 5778:5778
|
||||
# - 4002:16686
|
||||
# - 14250:14250
|
||||
# - 14268:14268
|
||||
# - 14269:14269
|
||||
# - 4317:4317 # OTLP gRPC
|
||||
# - 4318:4318 # OTLP HTTP
|
||||
# - 9411:9411
|
||||
# environment:
|
||||
# COLLECTOR_OTLP_ENABLED: 'true'
|
||||
# COLLECTOR_ZIPKIN_HOST_PORT: '9411'
|
||||
volumes:
|
||||
db_data:
|
||||
|
@ -1,4 +1,4 @@
|
||||
version: '3.7'
|
||||
version: "3.7"
|
||||
services:
|
||||
redis:
|
||||
image: redis:7
|
||||
@ -19,7 +19,7 @@ services:
|
||||
- 8080:8080
|
||||
environment:
|
||||
## Add your license key below
|
||||
# HASURA_GRAPHQL_EE_LICENSE_KEY: ''
|
||||
# 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
|
||||
@ -27,18 +27,18 @@ services:
|
||||
|
||||
## Optional settings
|
||||
## enable the console served by server
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true'
|
||||
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_DEV_MODE: "true"
|
||||
# HASURA_GRAPHQL_LOG_LEVEL: debug
|
||||
HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: '/srv/console-assets'
|
||||
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'
|
||||
HASURA_GRAPHQL_RATE_LIMIT_REDIS_URL: "redis://redis:6379"
|
||||
HASURA_GRAPHQL_MAX_CACHE_SIZE: "200"
|
||||
# Configures the connection to the Data Connector agent for MySQL by default
|
||||
# You can also omit this and manually configure the same thing via the 'Data' tab, then 'Add Agent'
|
||||
# in the Hasura console
|
||||
@ -47,14 +47,14 @@ services:
|
||||
data-connector-agent:
|
||||
condition: service_healthy
|
||||
data-connector-agent:
|
||||
image: hasura/graphql-data-connector:v2.22.0
|
||||
image: hasura/graphql-data-connector:v2.23.0
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
environment:
|
||||
QUARKUS_LOG_LEVEL: ERROR # FATAL, ERROR, WARN, INFO, DEBUG, TRACE
|
||||
## https://quarkus.io/guides/opentelemetry#configuration-reference
|
||||
QUARKUS_OPENTELEMETRY_ENABLED: 'false'
|
||||
QUARKUS_OPENTELEMETRY_ENABLED: "false"
|
||||
## QUARKUS_OPENTELEMETRY_TRACER_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8081/api/v1/mysql/health"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
version: '3.7'
|
||||
version: "3.7"
|
||||
services:
|
||||
redis:
|
||||
image: redis:7
|
||||
@ -19,7 +19,7 @@ services:
|
||||
- 8080:8080
|
||||
environment:
|
||||
## Add your license key below
|
||||
# HASURA_GRAPHQL_EE_LICENSE_KEY: ''
|
||||
# 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
|
||||
@ -27,18 +27,18 @@ services:
|
||||
|
||||
## Optional settings
|
||||
## enable the console served by server
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true'
|
||||
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_DEV_MODE: "true"
|
||||
# HASURA_GRAPHQL_LOG_LEVEL: debug
|
||||
HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: '/srv/console-assets'
|
||||
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'
|
||||
HASURA_GRAPHQL_RATE_LIMIT_REDIS_URL: "redis://redis:6379"
|
||||
HASURA_GRAPHQL_MAX_CACHE_SIZE: "200"
|
||||
# Configures the connection to the Data Connector agent for Oracle by default
|
||||
# You can also omit this and manually configure the same thing via the 'Data' tab, then 'Add Agent'
|
||||
# in the Hasura console
|
||||
@ -47,14 +47,14 @@ services:
|
||||
data-connector-agent:
|
||||
condition: service_healthy
|
||||
data-connector-agent:
|
||||
image: hasura/graphql-data-connector:v2.22.0
|
||||
image: hasura/graphql-data-connector:v2.23.0
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
environment:
|
||||
QUARKUS_LOG_LEVEL: ERROR # FATAL, ERROR, WARN, INFO, DEBUG, TRACE
|
||||
## https://quarkus.io/guides/opentelemetry#configuration-reference
|
||||
QUARKUS_OPENTELEMETRY_ENABLED: 'false'
|
||||
QUARKUS_OPENTELEMETRY_ENABLED: "false"
|
||||
## QUARKUS_OPENTELEMETRY_TRACER_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8081/api/v1/oracle/health"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
version: '3.7'
|
||||
version: "3.7"
|
||||
services:
|
||||
redis:
|
||||
image: redis:7
|
||||
@ -19,7 +19,7 @@ services:
|
||||
- 8080:8080
|
||||
environment:
|
||||
## Add your license key below
|
||||
# HASURA_GRAPHQL_EE_LICENSE_KEY: ''
|
||||
# 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
|
||||
@ -27,18 +27,18 @@ services:
|
||||
|
||||
## Optional settings
|
||||
## enable the console served by server
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true'
|
||||
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_DEV_MODE: "true"
|
||||
# HASURA_GRAPHQL_LOG_LEVEL: debug
|
||||
HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: '/srv/console-assets'
|
||||
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'
|
||||
HASURA_GRAPHQL_RATE_LIMIT_REDIS_URL: "redis://redis:6379"
|
||||
HASURA_GRAPHQL_MAX_CACHE_SIZE: "200"
|
||||
# Configures the connection to the Data Connector agent for Snowflake by default
|
||||
# You can also omit this and manually configure the same thing via the 'Data' tab, then 'Add Agent'
|
||||
# in the Hasura console
|
||||
@ -47,17 +47,18 @@ services:
|
||||
data-connector-agent:
|
||||
condition: service_healthy
|
||||
data-connector-agent:
|
||||
image: hasura/graphql-data-connector:v2.22.0
|
||||
image: hasura/graphql-data-connector:v2.23.0
|
||||
restart: always
|
||||
ports:
|
||||
- 8081:8081
|
||||
environment:
|
||||
QUARKUS_LOG_LEVEL: ERROR # FATAL, ERROR, WARN, INFO, DEBUG, TRACE
|
||||
## https://quarkus.io/guides/opentelemetry#configuration-reference
|
||||
QUARKUS_OPENTELEMETRY_ENABLED: 'false'
|
||||
QUARKUS_OPENTELEMETRY_ENABLED: "false"
|
||||
## QUARKUS_OPENTELEMETRY_TRACER_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8081/api/v1/snowflake/health"]
|
||||
test:
|
||||
["CMD", "curl", "-f", "http://localhost:8081/api/v1/snowflake/health"]
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
@ -81,4 +82,4 @@ services:
|
||||
# COLLECTOR_OTLP_ENABLED: 'true'
|
||||
# COLLECTOR_ZIPKIN_HOST_PORT: '9411'
|
||||
volumes:
|
||||
db_data:
|
||||
db_data:
|
||||
|
Loading…
Reference in New Issue
Block a user