Wealthfolio logo

Wealthfolio

Private, local-first portfolio tracker for investments, net worth and spending

Alternative to: personal capital, empower, sharesight, kubera


Wealthfolio is an open-source, private portfolio tracker for investments, net worth, spending and simulations. Your data stays on your own server with no account required, and it offers performance analytics, goal planning, multi-currency support and an addon system. The Docker image serves the web UI and API with optional password or OIDC login.

Wealthfolio Docker Compose example

Self-host Wealthfolio on your own server, homelab, or VPS starting from this Docker Compose example. It runs Wealthfolio in Docker containers using the official wealthfolio/wealthfolio:latest image, with persistent volumes and automatic restarts preconfigured. Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.

services:
  wealthfolio:
    image: wealthfolio/wealthfolio:latest
    restart: unless-stopped
    volumes:
      - data:/data
    environment:
      # Address the server listens on inside the container.
      WF_LISTEN_ADDR: "0.0.0.0:8088"
      # SQLite database location; its directory also holds profiles, the encrypted secrets vault and addons.
      WF_DB_PATH: "/data/wealthfolio.db"
      # Master key for secrets at rest and session signing: a base64-encoded 32-byte key (openssl rand -base64 32) or a 32-character ASCII string.
      WF_SECRET_KEY: "changeme-changeme-changeme-chang"
      # Refuse to start unless the database is encrypted; convert existing databases offline before enabling.
      WF_DB_REQUIRE_ENCRYPTION: "0"
      # Argon2id PHC hash of the login password (printf 'your-password' | argon2 yoursalt16chars! -id -e); every $ is doubled in compose YAML. This placeholder is the hash of "changeme".
      WF_AUTH_PASSWORD_HASH: "$$argon2id$$v=19$$m=65536,t=3,p=4$$d2VhbHRoZm9saW8tc2FsdA$$cKs01UTOj0+VmkLAA9isl6aWR+2mRKFbpfMDRvq42SE"
      # Login session lifetime in minutes.
      WF_AUTH_TOKEN_TTL_MINUTES: "60"
      # Public origin the app is served from (scheme, host and any non-standard port; no path), comma-separated for several.
      WF_CORS_ALLOW_ORIGINS: "http://localhost:8088"
      # Maximum time in milliseconds to wait for a request to complete.
      WF_REQUEST_TIMEOUT_MS: "30000"
      # OpenID Connect issuer URL for single sign-on (Authentik, PocketID, Authelia, …); SSO is enabled when the issuer and client id are set.
      WF_OIDC_ISSUER_URL: ""
      # OIDC client id registered with your identity provider.
      WF_OIDC_CLIENT_ID: ""
      # OIDC client secret, for confidential clients (PKCE is always used).
      WF_OIDC_CLIENT_SECRET: ""
      # OIDC redirect URL registered in the identity provider, e.g. https://wealthfolio.example.com/api/v1/auth/oidc/callback
      WF_OIDC_REDIRECT_URL: ""
      # Comma-separated email addresses allowed to sign in via OIDC; with OIDC enabled and no allowlist the server refuses to start.
      WF_OIDC_ALLOWED_EMAILS: ""
      # Enable the AI agent access (MCP) endpoint; requires authentication.
      WF_MCP_ENABLED: "false"
      # Record MCP tool calls in the audit log.
      WF_MCP_AUDIT_ENABLED: "true"
    healthcheck:
      test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:8088/api/v1/healthz"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 15s
    security_opt:
      - no-new-privileges:true
    read_only: true
    tmpfs:
      - /tmp:size=64M

volumes:
  data:

Values set to changeme are required — replace them with your own values before starting Wealthfolio.

Prefer a managed setup? WinterFlow installs, configures, and updates Wealthfolio for you using this same Docker Compose configuration.