-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add SuperTokens * format
- Loading branch information
Showing
2 changed files
with
67 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,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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.