ghostfolio

by J4NS-R

Helm chartv0.2.86App 3.100.0Apache-2.0Verified publisher

Unofficial Helm chart for Ghostfolio, an open source wealth management software.

About this chart

Unofficial Ghostfolio Helm Chart

This project provides a Helm chart for deploying Ghostfolio: the Open Source Wealth Management Software into any Kubernetes cluster. It integrates the official Docker images built by the Ghostfolio team, hosted on DockerHub. It also includes PostgreSQL and Valkey as optional subcharts.

Installation

Add the GitHub Helm repository

helm repo add ghostfolio https://j4ns-r.github.io/ghostfolio-helm/
helm repo update
# list versions
helm search repo --versions ghostfolio

Install the chart

Create a values file configuring the chart:

# Optional: pin specific ghostfolio image tag. Default is chart appVersion
# image:
#   tag: 1.2.3

ghostfolio:
  existingSecret: gf-secret # required keys: JWT_SECRET_KEY, ACCESS_TOKEN_SALT
  # Optionally specify arbitrary env vars: https://github.com/ghostfolio/ghostfolio#supported-environment-variables
  # ROOT_URL: "http://ghostfolio.ghostfolio.svc.cluster.local"

valkey:
  auth:
    usersExistingSecret: valkey-secret  # required key: default

postgres:
  auth:
    existingSecret: pg-secret  # required keys: postgres-password, uri

Then create the required secrets in-cluster. For example:

kubectl create secret generic gf-secret \
  --from-literal=JWT_SECRET_KEY=$(openssl rand -hex 24) \
  --from-literal=ACCESS_TOKEN_SALT=$(openssl rand -hex 24)
kubectl create secret generic valkey-secret \
  --from-literal=default=$(openssl rand -hex 24)
pgpassword=$(openssl rand -hex 24)
kubectl create secret generic pg-secret --from-literal=postgres-password="$pgpassword" --from-literal=uri="postgresql://ghostfolio-user:$pgpassword@ghostfolio-postgres:5432/ghostfolio-db"

And finally, install:

helm upgrade --install ghostfolio ghostfolio/ghostfolio -f values.yaml -n <namespace>

Verify the deployment

kubectl get pods -l app.kubernetes.io/instance=ghostfolio -n <namespace>
# Once all pods are up:
helm test ghostfolio -n <namespace>

Uninstall the chart

helm uninstall ghostfolio -n <namespace>

Changelog and breaking changes

This repo follows semantic versioning. See the changelog on ArtifactHub

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

Contributing

PR's welcome. See CONTRIBUTING.md

Deploy ghostfolio with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ghostfolio on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartghostfolio is pinned at v0.2.86 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply