Portabase Logo
Portabase DashboardAdvanced Configuration

Environment Variables

Complete reference of .env configuration options.

Portabase provides flexibility through environment variables. These let you customize application behavior, database connection, authentication and storage.

If you use Docker Compose, set these variables in your .env file at the root of the project.


Project

General instance configuration.

VariableTypeDefaultDescription
PROJECT_NAMEstringPortabaseDisplay name in the UI (site title).
PROJECT_DESCRIPTIONstringManage all your database instances from one place !Project tagline or description.
PROJECT_URLstringhttp://localhost:8887Public URL of your dashboard (e.g. https://backups.my-domain.com). Important for generated links.
PROJECT_SECRETstringNoneCritical. Secret used to encrypt sensitive data. Generate with openssl rand -hex 32.
RETENTION_CRONstring0 7 * * *Schedule for automatic deletion of backups according to the retention policies.

Database

Configuration for the internal Portabase PostgreSQL connection.

VariableTypeDefaultDescription
POSTGRES_DBstringdevdbDatabase name.
POSTGRES_USERstringdevuserPostgreSQL user.
POSTGRES_PASSWORDstringchangemeUser password.
DATABASE_URLstringpostgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?schema=publicFull connection string used by the app.

Email (SMTP)

Configuration for transactional email delivery (alerts, invitations).

If no configuration is provided, email-related features will be limited (no password reset, no email verification).

VariableTypeDefaultDescription
SMTP_HOSTstringNoneSMTP server address (e.g. smtp.resend.com).
SMTP_PORTstringNoneSMTP server port (e.g. 587).
SMTP_USERstringNoneSMTP username.
SMTP_PASSWORDstringNoneSMTP password.
SMTP_FROMstringNoneFrom email address (e.g. no-reply@your-domain.com).
SMTP_SECUREstringfalse

Google Authentication (OAuth2)

Enable login via Google (SSO).

VariableTypeDefaultDescription
AUTH_GOOGLE_METHODstringfalseEnable (true) or disable (false) the Google provider.
AUTH_GOOGLE_IDstringNoneYour Google Cloud OAuth2 Client ID.
AUTH_GOOGLE_SECRETstringNoneYour Google Cloud OAuth2 Client Secret.

On this page