2023-04-25 17:41:15 +03:00
|
|
|
version: "3.6"
|
2020-09-08 19:36:28 +03:00
|
|
|
services:
|
|
|
|
postgres:
|
2023-04-25 17:41:15 +03:00
|
|
|
image: postgres:15
|
2020-09-08 19:36:28 +03:00
|
|
|
restart: always
|
|
|
|
volumes:
|
2023-04-25 17:41:15 +03:00
|
|
|
- db_data:/var/lib/postgresql/data
|
2020-09-08 19:36:28 +03:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: postgrespassword
|
|
|
|
graphql-engine:
|
|
|
|
image: hasura/graphql-engine:pull5655-633f084f
|
|
|
|
ports:
|
2023-04-25 17:41:15 +03:00
|
|
|
- "8080:8080"
|
2020-09-08 19:36:28 +03:00
|
|
|
depends_on:
|
2023-04-25 17:41:15 +03:00
|
|
|
- "postgres"
|
2020-09-08 19:36:28 +03:00
|
|
|
command:
|
2023-04-25 17:41:15 +03:00
|
|
|
- graphql-engine
|
|
|
|
- --mysql-host
|
|
|
|
- <mysql-host>
|
|
|
|
- --mysql-user
|
|
|
|
- <mysql-user>
|
|
|
|
- --mysql-port
|
|
|
|
- <mysql-port>
|
|
|
|
- --mysql-dbname
|
|
|
|
- <mysql-dbname>
|
|
|
|
- --mysql-password
|
|
|
|
- <mysql-password>
|
|
|
|
- serve
|
2020-09-08 19:36:28 +03:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
HASURA_GRAPHQL_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
|
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
|
2020-09-08 19:36:28 +03:00
|
|
|
## uncomment next line to set an admin secret
|
|
|
|
# HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
|
|
|
|
volumes:
|
|
|
|
db_data:
|