> ## 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 Ghostfolio with Docker

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

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](https://github.com/ghostfolio/ghostfolio).

Recommended memory: about 1024 MiB.

## Services, ports and volumes

| Service | Image | Container ports | Volumes |
| - | - | - | - |
| `db` | `postgres:16-alpine` | none | `ghostfolio_db_data -&#62; /var/lib/postgresql/data` |
| `ghostfolio` | `ghostfolio/ghostfolio:3.72.0` | 3333 | none |
| `redis` | `redis:7-alpine` | none | `ghostfolio_redis_data -&#62; /data` |

## Environment variables

| Service | Variable | Value |
| - | - | - |
| `db` | `POSTGRES_DB` | Preset in the template |
| `db` | `POSTGRES_PASSWORD` | Generated at deploy |
| `db` | `POSTGRES_USER` | Preset in the template |
| `ghostfolio` | `ACCESS_TOKEN_SALT` | Generated at deploy |
| `ghostfolio` | `DATABASE_URL` | Generated at deploy |
| `ghostfolio` | `JWT_SECRET_KEY` | Generated at deploy |
| `ghostfolio` | `REDIS_HOST` | Preset in the template |
| `ghostfolio` | `REDIS_PORT` | 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 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:

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

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.