Installation
There are several different ways to install Umami.
- Installing from source: Get the code from GitHub and build the application yourself.
- Using Docker compose: Build your own Docker container using
docker compose. - Using a Docker image: Download a pre-built Docker image.
- Using Kubernetes with HelmForge: Deploy Umami with a third-party Helm chart maintained by the HelmForge project. See the Running on Kubernetes with HelmForge guide.
Installing from source#
Requirements#
- A server with Node.js version 18.18 or newer.
- A database. Umami supports PostgreSQL (minimum v12.14) databases.
We recommend configuring the PostgreSQL database to use the UTC timezone. UTC avoids issues caused by regional offsets, ensuring consistent, predictable timestamps across environments, services, and deployments.
Install pnpm#
Get the source code and install packages#
Configure Umami#
Create an .env file with the following
The connection url is in the following format:
Build the application#
The first time the build is run, it will create all the required database tables in your database. It will also create a login account with username admin and password umami.
Start the application#
By default this will launch the application on http://localhost:3000. You will need to either
proxy requests from your web server
or change the port to serve the application directly.
Running Umami#
You can simply run pnpm start to start Umami, but it's highly recommended you use a process manager like PM2 which will handle restarts for you.
To run with PM2:
Installing with Docker#
Umami ships with a docker compose file that contains the application and a PostgreSQL database.
To build the Docker container and start up with a Postgres database, run:
This will create a PostgreSQL database and start the Umami application on http://localhost:3000.
The default login credentials are username admin and password umami.
Change the default password immediately after your first login.
Alternatively, if you want to use prebuilt images, you can pull the Umami Docker image with PostgreSQL support:
When using a prebuilt image, you need to provide your own database and set the DATABASE_URL environment variable. See Environment variables for configuration options.