# Self-host Sure

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

- Page: https://levelrail.com/templates/sure/
- JSON: https://levelrail.com/templates/sure.json
- Category: Finance
- Licence: AGPL-3.0 (Network copyleft (AGPL) license)
- Source: https://github.com/we-promise/sure
- Upstream docs: https://github.com/we-promise/sure

## Requirements
- Memory: about 1 GiB
- amd64: published, arm64: published
- Needs configuration before start: no
- Pinned image tag: 16-alpine

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| postgresql | postgres | 16-alpine | none | sure_postgresql_data -> /var/lib/postgresql/data |
| valkey | valkey/valkey | 8-alpine | none | sure_valkey_data -> /data |
| web | ghcr.io/we-promise/sure | 0.6.7 | 3000 | sure_app_storage -> /rails/storage |
| worker | ghcr.io/we-promise/sure | 0.6.7 | none | sure_app_storage -> /rails/storage |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| postgresql | POSTGRES_DB | preset |
| postgresql | POSTGRES_PASSWORD | generated |
| postgresql | POSTGRES_USER | preset |
| web | APP_DOMAIN | preset |
| web | DB_HOST | preset |
| web | DB_PORT | preset |
| web | ONBOARDING_STATE | preset |
| web | POSTGRES_DB | preset |
| web | POSTGRES_PASSWORD | generated |
| web | POSTGRES_USER | preset |
| web | RAILS_ASSUME_SSL | preset |
| web | RAILS_FORCE_SSL | preset |
| web | REDIS_URL | preset |
| web | SECRET_KEY_BASE | generated |
| web | SELF_HOSTED | preset |
| worker | DB_HOST | preset |
| worker | DB_PORT | preset |
| worker | POSTGRES_DB | preset |
| worker | POSTGRES_PASSWORD | generated |
| worker | POSTGRES_USER | preset |
| worker | REDIS_URL | preset |
| worker | SECRET_KEY_BASE | generated |
| worker | SELF_HOSTED | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy sure --name my-sure
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/sure/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Sure on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Sure, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image postgres:16-alpine, valkey/valkey:8-alpine, ghcr.io/we-promise/sure:0.6.7, ghcr.io/we-promise/sure:0.6.7 is what you deploy there.

Self-host Sure, Sure docker compose file, deploy Sure on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
