mirror of
https://github.com/SrIzan10/starters.git
synced 2026-05-01 11:05:16 +00:00
31 lines
1016 B
Docker
31 lines
1016 B
Docker
FROM hasura/graphql-engine:v1.3.3
|
|
|
|
# Enable the console
|
|
ENV HASURA_GRAPHQL_ENABLE_CONSOLE=true
|
|
|
|
# Enable debugging mode. It should be disabled in production.
|
|
ENV HASURA_GRAPHQL_DEV_MODE=true
|
|
|
|
# Heroku hobby tier PG has few limitations including 20 max connections
|
|
# https://devcenter.heroku.com/articles/heroku-postgres-plans#hobby-tier
|
|
ENV HASURA_GRAPHQL_PG_CONNECTIONS=15
|
|
|
|
# Change $DATABASE_URL to your heroku postgres URL if you're not using
|
|
# the primary postgres instance in your app
|
|
CMD graphql-engine \
|
|
--database-url $DATABASE_URL \
|
|
serve \
|
|
--server-port $PORT
|
|
|
|
## Comment the command above and use the command below to
|
|
## enable an access-key and an auth-hook
|
|
## Recommended that you set the access-key as a environment variable in heroku
|
|
#CMD graphql-engine \
|
|
# --database-url $DATABASE_URL \
|
|
# serve \
|
|
# --server-port $PORT \
|
|
# --access-key XXXXX \
|
|
# --auth-hook https://myapp.com/hasura-webhook
|
|
#
|
|
# Console can be enable/disabled by the env var HASURA_GRAPHQL_ENABLE_CONSOLE
|