|
| 1 | +--- |
| 2 | +title: Running on Northflank |
| 3 | +--- |
| 4 | + |
| 5 | +[Northflank](https://northflank.com) is a fully managed platform for building, deploying, and scaling applications using containers. It combines the flexibility of cloud infrastructure with a simple developer experience so you can focus on your app instead of managing servers. |
| 6 | + |
| 7 | +Northflank provides free and paid hosting plans that let you deploy Umami together with a managed PostgreSQL database, all configured automatically. |
| 8 | + |
| 9 | +## Setup Website and Database |
| 10 | + |
| 11 | +### Northflank Button (Recommended) |
| 12 | + |
| 13 | +[](https://northflank.com/stacks/deploy-umami) |
| 14 | + |
| 15 | +Click the button above to deploy your own Umami instance with a managed PostgreSQL addon and all environment variables preconfigured. |
| 16 | + |
| 17 | +Once the stack is deployed, go to your Umami service in the Northflank project dashboard and open the public URL. |
| 18 | + |
| 19 | +You should see the setup screen where you can create your admin account and start using Umami. |
| 20 | + |
| 21 | +## Running on Northflank manually |
| 22 | + |
| 23 | +The one-click deployment is the easiest way to get started, but you can also deploy Umami manually using the template configuration. |
| 24 | + |
| 25 | +1. Create a new project on [Northflank](https://northflank.com). |
| 26 | +2. Add a **PostgreSQL addon** to the project. |
| 27 | +3. Create a **Deployment service** using the Docker image `umamisoftware/umami:postgresql-latest`. |
| 28 | +4. Expose port `3000` publicly. |
| 29 | +5. Add the following environment variables and link them to your database: |
| 30 | + - `DATABASE_URL` — connection string from the PostgreSQL addon |
| 31 | + - `DATABASE_TYPE=postgres` |
| 32 | +6. Deploy the service. |
| 33 | + |
| 34 | +Once deployed, open the public URL of your service to finish the Umami setup. |
| 35 | + |
| 36 | +### Notes |
| 37 | + |
| 38 | +- Data is stored in the PostgreSQL addon and persists across deploys. |
| 39 | +- You can scale the service or update the image version from the dashboard. |
| 40 | +- Read more about [adding a website](https://umami.is/docs/add-a-website) and [collecting data](https://umami.is/docs/collect-data) here. |
0 commit comments