2023-04-25 17:41:15 +03:00
|
|
|
version: "3.6"
|
2021-02-23 19:08:06 +03:00
|
|
|
services:
|
|
|
|
postgres:
|
2023-04-25 17:41:15 +03:00
|
|
|
image: postgres:15
|
2021-02-23 19:08:06 +03:00
|
|
|
restart: always
|
|
|
|
volumes:
|
2022-07-20 13:41:40 +03:00
|
|
|
- pg_data:/var/lib/postgresql/data
|
2021-02-23 19:08:06 +03:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: postgrespassword
|
2022-07-20 13:41:40 +03:00
|
|
|
mssql:
|
|
|
|
image: mcr.microsoft.com/mssql/server:2022-latest
|
|
|
|
environment:
|
2023-04-25 17:41:15 +03:00
|
|
|
ACCEPT_EULA: "Y"
|
2022-07-20 13:41:40 +03:00
|
|
|
SA_PASSWORD: ${MSSQL_PASSWORD:-Password1}
|
|
|
|
volumes:
|
2022-10-21 19:23:01 +03:00
|
|
|
- mssql_data:/var/opt/mssql
|
2021-02-23 19:08:06 +03:00
|
|
|
graphql-engine:
|
2024-06-10 16:10:05 +03:00
|
|
|
image: hasura/graphql-engine:v2.40.0
|
2021-02-23 19:08:06 +03:00
|
|
|
ports:
|
2023-04-25 17:41:15 +03:00
|
|
|
- "8080:8080"
|
2021-02-23 19:08:06 +03:00
|
|
|
depends_on:
|
2023-04-25 17:41:15 +03:00
|
|
|
- "postgres"
|
|
|
|
- "mssql"
|
2021-02-23 19:08:06 +03:00
|
|
|
restart: always
|
|
|
|
environment:
|
2021-07-22 16:52:52 +03:00
|
|
|
## postgres database to store Hasura metadata
|
2021-02-23 19:08:06 +03:00
|
|
|
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
|
2022-07-20 13:41:40 +03:00
|
|
|
## 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
|
2022-10-21 19:23:01 +03:00
|
|
|
MSSQL_DATABASE_URL: Driver={ODBC Driver 18 for SQL Server};Server=tcp:mssql,1433;Database=tempdb;Uid=sa;Pwd=Password1;Encrypt=optional
|
2021-02-23 19:08:06 +03:00
|
|
|
## enable the console served by server
|
2023-04-25 17:41:15 +03:00
|
|
|
HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
|
2021-02-23 19:08:06 +03:00
|
|
|
## enable debugging mode. It is recommended to disable this in production
|
2023-04-25 17:41:15 +03:00
|
|
|
HASURA_GRAPHQL_DEV_MODE: "true"
|
2021-02-23 19:08:06 +03:00
|
|
|
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
|
2022-09-18 01:48:12 +03:00
|
|
|
## 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
|
2021-02-23 19:08:06 +03:00
|
|
|
## uncomment next line to set an admin secret
|
|
|
|
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
|
|
|
|
volumes:
|
2022-07-20 13:41:40 +03:00
|
|
|
pg_data:
|
|
|
|
mssql_data:
|