> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-host Sure with Docker

> A privacy-first personal finance app for tracking net worth, budgets, and investments across every account.

A privacy-first personal finance app for tracking net worth, budgets, and investments across every account.

This page describes the Levelrail template for Sure (Finance). It deploys the services below as one Docker Compose app on your own server. Project site: [https://github.com/we-promise/sure](https://github.com/we-promise/sure).

Recommended memory: about 1024 MiB.

## Services, ports and volumes

| Service | Image | Container ports | Volumes |
| - | - | - | - |
| `postgresql` | `postgres:16-alpine` | none | `sure_postgresql_data -&#62; /var/lib/postgresql/data` |
| `valkey` | `valkey/valkey:8-alpine` | none | `sure_valkey_data -&#62; /data` |
| `web` | `ghcr.io/we-promise/sure:0.6.7` | 3000 | `sure_app_storage -&#62; /rails/storage` |
| `worker` | `ghcr.io/we-promise/sure:0.6.7` | none | `sure_app_storage -&#62; /rails/storage` |

## Environment variables

| Service | Variable | Value |
| - | - | - |
| `postgresql` | `POSTGRES_DB` | Preset in the template |
| `postgresql` | `POSTGRES_PASSWORD` | Generated at deploy |
| `postgresql` | `POSTGRES_USER` | Preset in the template |
| `web` | `APP_DOMAIN` | Preset in the template |
| `web` | `DB_HOST` | Preset in the template |
| `web` | `DB_PORT` | Preset in the template |
| `web` | `ONBOARDING_STATE` | Preset in the template |
| `web` | `POSTGRES_DB` | Preset in the template |
| `web` | `POSTGRES_PASSWORD` | Generated at deploy |
| `web` | `POSTGRES_USER` | Preset in the template |
| `web` | `RAILS_ASSUME_SSL` | Preset in the template |
| `web` | `RAILS_FORCE_SSL` | Preset in the template |
| `web` | `REDIS_URL` | Preset in the template |
| `web` | `SECRET_KEY_BASE` | Generated at deploy |
| `web` | `SELF_HOSTED` | Preset in the template |
| `worker` | `DB_HOST` | Preset in the template |
| `worker` | `DB_PORT` | Preset in the template |
| `worker` | `POSTGRES_DB` | Preset in the template |
| `worker` | `POSTGRES_PASSWORD` | Generated at deploy |
| `worker` | `POSTGRES_USER` | Preset in the template |
| `worker` | `REDIS_URL` | Preset in the template |
| `worker` | `SECRET_KEY_BASE` | Generated at deploy |
| `worker` | `SELF_HOSTED` | Preset in the template |

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

## Deploy Sure with Levelrail

In the dashboard, open **Apps**, choose **New app**, then **Browse templates**, and select Sure. Review the Compose body and deploy.

With the CLI:

```bash theme={"dark"}
levelrail-cli templates deploy sure --name my-sure
```

See the [service template catalog](/templates-and-registry) for how templates work, and [Getting started](/getting-started) if you have not installed Levelrail yet.

## More Finance templates

* [Actual Budget](/self-host/actual-budget)
* [Actual Budget](/self-host/actualbudget)
* [Budge](/self-host/budge)
* [Dolibarr](/self-host/dolibarr)
* [Firefly III](/self-host/firefly-iii)

All templates are listed in the [self-host gallery](/self-host).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.