mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 01:44:03 +03:00
b2ac4d82bc
Recent versions of Docker Compose no longer support this, instead just printing a warning. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10937 GitOrigin-RevId: 97a82968c48f5c09d6cbe74d8ea7386979e46e7a
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:15
|
|
restart: always
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgrespassword
|
|
|
|
yugabyte:
|
|
extends:
|
|
file: ../../docker-compose/databases.yaml
|
|
service: yugabyte
|
|
ports:
|
|
- "65009:5433"
|
|
environment:
|
|
YSQL_USER: "hasura"
|
|
YSQL_PASSWORD: "hasura"
|
|
YSQL_DB: "hasura"
|
|
volumes:
|
|
- yugabyte-data:/var/lib/postgresql/data
|
|
|
|
graphql-engine:
|
|
image: hasura/graphql-engine:v2.40.0
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
- "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
|
|
## 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
|
|
## 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
|
|
## uncomment next line to set an admin secret
|
|
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
|
|
## predefined connection string for Yugabyte
|
|
HASURA_YUGABYTE_CONNECT_URL: postgresql://hasura:hasura@yugabyte:5433/hasura
|
|
|
|
volumes:
|
|
postgres-data:
|
|
yugabyte-data:
|