forked from railwayapp-templates/hasura
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wyzlle
authored
May 3, 2022
0 parents
commit ff54b3a
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
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 |