DEV Community

konsongong
konsongong

Posted on Originally published at vpsfolio.com

Self-Host Firefly III with Docker Compose: Personal Finance Manager

Measured Sandbox Benchmark

Idle RAM Startup Containers Recommended VPS
187.7 MB 93.6s 3 1 GB VPS

Per-container RAM: db 152.0 MB · app 27.5 MB · redis 8.2 MB (sandbox verified 2026-12-01)

View the interactive benchmark plate and full VPS sizing comparison or compare all measured stacks on VPSFolio Benchmarks.


What Firefly III does and what it needs

Firefly III is a self-hosted personal finance manager built around double-entry bookkeeping. You record transactions between asset, expense, and revenue accounts, then slice the data with budgets, categories, tags, piggy banks, and reports. It ships a REST JSON API, rule-based transaction handling, recurring transactions, and two-factor authentication. Nothing leaves your server unless you explicitly configure an importer or mailer.

The application is a Laravel PHP app. In production it needs a database (MySQL/MariaDB or PostgreSQL; SQLite is supported but not what you want for a multi-year ledger), a persistent storage volume for uploads and attachments, and an APP_KEY that encrypts sensitive columns. Redis is optional but recommended: the env template lets you move CACHE_STORE and SESSION_DRIVER off the filesystem, which keeps the app snappy once you have thousands of transactions.

The upstream project does not publish a minimum memory figure. Practical sizing depends on workload: an idle single-user instance with a few thousand transactions runs comfortably in a small container, while heavy report generation, large CSV imports, and the data importer hammering the API push PHP memory usage up. The env template exposes PHP_MEMORY_LIMIT (default 512M) — raise it if imports or reports get killed.

Prerequisites, ports, and volume constraints

  • Docker Engine 24+ with the Compose v2 plugin.
  • A hostname pointing at your VPS (e.g. finance.example.com) if you want HTTPS. You can test on 127.0.0.1:8080 first.
  • Port 8080 on the host, bound to localhost only. The container listens on 8080 internally; the official image does not use port 80.
  • Two named volumes: firefly_iii_upload mounted at /var/www/html/storage/upload (attachments, logos, imported files) and firefly_iii_db for MySQL data. Losing the upload volume means losing attachments; losing the DB volume means losing everything.
  • APP_KEY must be exactly 32 characters. Generate it with openssl rand -hex 16 (32 hex chars) or openssl rand -base64 32 and trim to 32. Changing it later breaks encrypted fields.
  • STATIC_CRON_TOKEN is a shared secret used by the built-in cron endpoint. Generate a random string and keep it stable.

Full Verified Docker Compose Setup, Reverse Proxy & Troubleshooting

Get the complete sandbox-tested compose.yml, .env secrets setup, Caddy/Nginx HTTPS config, backup commands, and troubleshooting Q&A on VPSFolio:

-> Read the full verified guide on VPSFolio

-> Browse all measured self-hosted RAM benchmarks


Originally published with full interactive benchmark metrics and server sizing notes at https://vpsfolio.com/self-host-firefly-iii-docker-compose/.

Top comments (0)