Levelrail
Skip to content

Self-host Ghostfolio with Docker ​

A privacy-first wealth tracker for stocks, ETFs, and crypto, with portfolio analytics and no ads.

This page describes the Levelrail template for Ghostfolio (Finance). It deploys the services below as one Docker Compose app on your own server.

Project site: https://github.com/ghostfolio/ghostfolio.

Recommended memory: about 1024 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
dbpostgres:16-alpinenone
ghostfolio_db_data -> /var/lib/postgresql/data
ghostfolioghostfolio/ghostfolio:3.72.03333none
redisredis:7-alpinenone
ghostfolio_redis_data -> /data

Environment variables ​

ServiceVariableValue
dbPOSTGRES_DBPreset in the template
dbPOSTGRES_PASSWORDGenerated at deploy
dbPOSTGRES_USERPreset in the template
ghostfolioACCESS_TOKEN_SALTGenerated at deploy
ghostfolioDATABASE_URLGenerated at deploy
ghostfolioJWT_SECRET_KEYGenerated at deploy
ghostfolioREDIS_HOSTPreset in the template
ghostfolioREDIS_PORTPreset 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 Ghostfolio with Levelrail ​

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

With the CLI:

levelrail-cli templates deploy ghostfolio --name my-ghostfolio

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.