diff options
| author | Rodolfo Silva <[email protected]> | 2020-07-05 12:17:39 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-05 11:17:39 -0400 |
| commit | da4a6d83e61eb53e39d1da501ec7f311e3cfb1aa (patch) | |
| tree | 5fba01b372624c1dbf70df1eaa0d9a769d2d886f | |
| parent | d9a0db82dfe8727ee6fc71ba2e5a8f22f02a0aa9 (diff) | |
| download | caprover-one-click-apps-da4a6d83e61eb53e39d1da501ec7f311e3cfb1aa.tar.gz caprover-one-click-apps-da4a6d83e61eb53e39d1da501ec7f311e3cfb1aa.zip | |
Add "Hasura - No Database" to use with external database (#210)
* Create hasura-only.json
* Add hasura-only.png
* fix the json format with prettier
| -rw-r--r-- | public/v2/apps/hasura-only.json | 47 | ||||
| -rw-r--r-- | public/v2/logos/hasura-only.png | bin | 0 -> 4918 bytes |
2 files changed, 47 insertions, 0 deletions
diff --git a/public/v2/apps/hasura-only.json b/public/v2/apps/hasura-only.json new file mode 100644 index 0000000..0eddbd2 --- /dev/null +++ b/public/v2/apps/hasura-only.json @@ -0,0 +1,47 @@ +{ + "captainVersion": "2", + "documentation": "Hasura GraphQL Engine", + "displayName": "Hasura - No Database", + "description": "Instant realtime GraphQL APIs on any Postgres application, existing or new", + "dockerCompose": { + "version": "3.6", + "services": { + "$$cap_appname": { + "image": "hasura/graphql-engine:$$cap_hasura_version", + "containerHttpPort": "8080", + "restart": "always", + "environment": { + "HASURA_GRAPHQL_DATABASE_URL": "$$cap_database_url", + "HASURA_GRAPHQL_ENABLE_CONSOLE": "true", + "HASURA_GRAPHQL_ADMIN_SECRET": "$$cap_admin_secret", + "HASURA_GRAPHQL_ENABLED_LOG_TYPES": "startup, http-log, webhook-log, websocket-log, query-log" + } + } + } + }, + "instructions": { + "end": "Hasura is deployed and available as $$cap_appname. \n\n IMPORTANT: It will take up to 2 minutes for Hasura to be ready. Before that, you might see 502 error page.\n", + "start": "Instant Realtime GraphQL on Postgres with web admin console." + }, + "variables": [ + { + "defaultValue": "v1.2.2", + "description": "Check out their GitHub page for their latest version https://github.com/hasura/graphql-engine", + "id": "$$cap_hasura_version", + "label": "Hasura Version", + "validRegex": "/^([^\\s^\\/])+$/" + }, + { + "description": "The admin secret gives you access to the console.", + "id": "$$cap_admin_secret", + "label": "Hasura admin secret(password)", + "validRegex": "/^(?=.*\\d).{10,}$/" + }, + { + "id": "$$cap_database_url", + "label": "Postgres Connection URL", + "description": "postgres://username:password@host/database", + "validRegex": "/postgres://.+/.+/" + } + ] +} diff --git a/public/v2/logos/hasura-only.png b/public/v2/logos/hasura-only.png Binary files differnew file mode 100644 index 0000000..1ea76cd --- /dev/null +++ b/public/v2/logos/hasura-only.png |
