FROM hasura/graphql-engine:v2.38.1 # 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 only allows to install extensions in the heroku_ext schema ENV HASURA_GRAPHQL_METADATA_DATABASE_EXTENSIONS_SCHEMA=heroku_ext # 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 CMD HASURA_GRAPHQL_METADATA_DATABASE_URL=$DATABASE_URL graphql-engine \ serve \ --server-port $PORT