Portabase Logo
Advanced 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 Dashboard project.


Database

Configuration for the internal Portabase PostgreSQL connection.

VariableTypeDefaultDescription
DATABASE_URLstringpostgresql://devuser:changeme@db:5432/devdb?schema=publicFull connection string used by the app (Prisma).
POSTGRES_DBstringdevdbDatabase name.
POSTGRES_USERstringdevuserPostgreSQL user.
POSTGRES_PASSWORDstringchangemeUser password.

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://backup.my-site.com). Important for generated links.
PROJECT_SECRETstringNoneCritical. Secret used to encrypt sensitive data. Generate with openssl rand -hex 32.
TIME_ZONEstringEurope/ParisApplication timezone.

Security

Never change PROJECT_SECRET once in production, otherwise you will not be able to decrypt agent keys.


Email (SMTP)

Configuration for transactional email delivery (alerts, invitations).

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).

Google Authentication (OAuth)

Enable login via Google (SSO).

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

Storage

Configuration for backup storage (local or S3-compatible object storage).

VariableTypeDefaultDescription
STORAGE_TYPEstringlocalStorage type: local (server disk) or s3 (cloud).
S3_ENDPOINTstringapi.s3.portabase.exemple.comS3 endpoint URL (e.g. s3.fr-par.scw.cloud).
S3_ACCESS_KEYstringNoneS3 access key.
S3_SECRET_KEYstringNoneS3 secret key.
S3_BUCKET_NAMEstringNoneDestination bucket name.
S3_PORTstring9000S3 service port (usually 443 for HTTPS, 9000 for MinIO).
S3_USE_SSLstringfalseUse HTTPS (true) or HTTP (false).

On this page