Skip to content

Instantly share code, notes, and snippets.

@BadPirate
Forked from johnniehard/dokku-hasura.sh
Created August 17, 2022 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BadPirate/25ef210e03f8b8b1ff1837c60daef374 to your computer and use it in GitHub Desktop.
Save BadPirate/25ef210e03f8b8b1ff1837c60daef374 to your computer and use it in GitHub Desktop.
dokku apps:create hasura
dokku domains:add hasura hasura.my.domain.com
dokku postgres:create hasura-db
dokku postgres:link hasura-db hasura
dokku config:set hasura HASURA_GRAPHQL_DATABASE_URL="<info from above command>" HASURA_GRAPHQL_ADMIN_SECRET="blahblah" HASURA_GRAPHQL_ENABLE_CONSOLE="true"
dokku proxy:ports-set hasura http:80:8080
docker pull hasura/graphql-engine
docker tag hasura/graphql-engine dokku/hasura
dokku tags:deploy hasura
dokku letsencrypt hasura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment