Levelrail
Skip to content

Self-host Sure with Docker ​

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.

Recommended memory: about 1024 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
postgresqlpostgres:16-alpinenone
sure_postgresql_data -> /var/lib/postgresql/data
valkeyvalkey/valkey:8-alpinenone
sure_valkey_data -> /data
webghcr.io/we-promise/sure:0.6.73000
sure_app_storage -> /rails/storage
workerghcr.io/we-promise/sure:0.6.7none
sure_app_storage -> /rails/storage

Environment variables ​

ServiceVariableValue
postgresqlPOSTGRES_DBPreset in the template
postgresqlPOSTGRES_PASSWORDGenerated at deploy
postgresqlPOSTGRES_USERPreset in the template
webAPP_DOMAINPreset in the template
webDB_HOSTPreset in the template
webDB_PORTPreset in the template
webONBOARDING_STATEPreset in the template
webPOSTGRES_DBPreset in the template
webPOSTGRES_PASSWORDGenerated at deploy
webPOSTGRES_USERPreset in the template
webRAILS_ASSUME_SSLPreset in the template
webRAILS_FORCE_SSLPreset in the template
webREDIS_URLPreset in the template
webSECRET_KEY_BASEGenerated at deploy
webSELF_HOSTEDPreset in the template
workerDB_HOSTPreset in the template
workerDB_PORTPreset in the template
workerPOSTGRES_DBPreset in the template
workerPOSTGRES_PASSWORDGenerated at deploy
workerPOSTGRES_USERPreset in the template
workerREDIS_URLPreset in the template
workerSECRET_KEY_BASEGenerated at deploy
workerSELF_HOSTEDPreset 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:

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

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Finance templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.