Running on Supabase
Use a Supabase PostgreSQL database for Umami, with a pooled connection string for the app and a direct connection string for migrations.
Supabase is an open source Firebase alternative built on the PostgreSQL database.
Setup#
-
Create a project on Supabase with a given name in a region close to where you will be hosting your Umami project.
-
Get the database connection string from the Settings > Database page, then scroll to the bottom for the Connection Pooling section and copy the Connection string.
-
Add
DATABASE_URLandDIRECT_DATABASE_URLto your.envfile.DATABASE_URLuses the pooled connection on port 6543.DIRECT_DATABASE_URLuses the session connection on port 5432 and is used for database migrations, which should not go through the transaction pooler.DIRECT_DATABASE_URLis supported from v3.2.0. -
You should now be able to build and start Umami (
pnpm buildfollowed bypnpm start). The first build creates the required database tables. -
Follow the Quickstart guide starting from the Login step and be sure to change the default password.