Skip to content

Commit

Permalink
Add SuperTokens (#1016)
Browse files Browse the repository at this point in the history
* add SuperTokens

* format
  • Loading branch information
lukesthl authored Nov 13, 2023
1 parent 6dfd8ed commit 93e5967
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions public/v4/apps/supertokens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
captainVersion: 4
services:
# PostgreSQL
$$cap_appname-postgres:
image: postgres:$$cap_postgres_version
volumes:
- $$cap_appname-postgres-data:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_USER: $$cap_pg_user
POSTGRES_PASSWORD: $$cap_postgres_password
POSTGRES_DB: $$cap_pg_db
caproverExtra:
notExposeAsWebApp: 'true'
# Supertokens
$$cap_appname:
depends_on:
- $$cap_appname-postgres
image: supertokens/supertokens-postgresql:$$cap_supertokens_version
restart: always
environment:
API_KEYS: $$cap_supertokens_api_keys
DISABLE_TELEMETRY: true
POSTGRESQL_CONNECTION_URI: postgresql://$$cap_pg_user:$$cap_postgres_password@srv-captain--$$cap_appname-postgres:5432/$$cap_pg_db
caproverExtra:
containerHttpPort: 3567
caproverOneClickApp:
instructions:
start: |-
SuperTokens is an open source user authentication solution.
More details: https://supertokens.com
end: |-
SuperTokens has been successfully deployed! It might take few moments before it's fully started.
For more information and available options, see https://github.com/supertokens/supertokens-docker-postgresql
displayName: SuperTokens
isOfficial: false
description: Auth Provider solution alternative to Auth0 / Firebase Auth / AWS Cognito
documentation: For more information, https://supertokens.com/docs/guides
variables:
- id: $$cap_supertokens_version
label: SuperTokens Version
description: Choose the latest version of SuperTokens from https://hub.docker.com/r/supertokens/supertokens-postgresql/tags
defaultValue: '7.0'
- id: $$cap_supertokens_api_keys
label: API Keys
validRegex: '/.{1,}/'
description: A comma separated list of API keys (https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/core/api-keys)
defaultValue: $$cap_gen_random_hex(64)
- id: $$cap_postgres_version
label: Postgres Version
description: Version of PostgreSQL. Check out their Docker page for the valid tags https://hub.docker.com/_/postgres/tags
defaultValue: 15-alpine
- id: $$cap_pg_user
label: Postgres Username
description: ''
validRegex: /.{1,}/
defaultValue: supertokens
- id: $$cap_postgres_password
label: Postgres User Password
description: User password for the database instance.
defaultValue: $$cap_gen_random_hex(16)
validRegex: /^(?=.*\d).{10,}$/
- id: $$cap_pg_db
label: Postgres database name
description: Name of the databse
validRegex: /.{1,}/
defaultValue: supertokens
Binary file added public/v4/logos/supertokens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 93e5967

Please sign in to comment.