English
Get started

← All templates · Personal finance

Deploy Firefly III in one click

A personal finance manager with double-entry bookkeeping

A self-hosted alternative to YNAB.

What is Firefly III?

Firefly III is an open-source personal finance manager that people run instead of YNAB. It keeps a double-entry record of withdrawals, deposits and transfers across bank, savings, credit card and loan accounts, in any currency. Rules spot a bank's messy descriptions and set the budget, category, tags or a cleaner description for you. Recurring transactions enter rent or salary on schedule, piggy banks save toward goals, and reports break down spending by budget, category or tag over any period.

People self-host it to keep years of bank records off someone else's cloud: Firefly III contacts no outside server until you tell it to, and it has no AI. It suits someone a little tech-savvy who wants to see where every euro goes. A REST API covers almost all of it, and third-party phone apps use it. The catch is getting bank data in: CSV and CAMT files and bank connections go through the Data Importer, a separate tool.

Hosting Firefly III on Pethost

  1. You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
  2. New project opens at Firefly III, and you click Create project.
  3. In a minute or two Firefly III is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
  4. It is a project like any other: you or your agent can change it, roll it back or restore it.

Questions about Firefly III

Is Firefly III free and open source?

Yes. Firefly III is free, licensed under the GNU Affero General Public License v3, with its code public on GitHub. Its developer works on it in his spare time, supported by donations and sponsors.

How is Firefly III different from YNAB?

Firefly III does not use zero-based budgeting. Instead of giving every incoming euro a job, you decide at the start of the month what you will spend, split it over a few budgets and keep the rest in savings.

Is there a Firefly III mobile app?

There is no official app: Firefly III is a web app. Community apps connect to it through its API, such as Waterfly III and Photuris III on Android, FireFlow on iPhone, and Abacus on both.

Can Firefly III import bank transactions?

Yes, through the Firefly III Data Importer, a separate app with its own installation that this template does not include. It reads CSV and CAMT.05x files and can download transactions through providers such as Enable Banking and SimpleFIN.

Can several people use Firefly III?

Yes, each user gets a separate administration. Registration is blocked after the first user, who can reopen it in /settings under Configuration options for Firefly III. Two users cannot share one administration yet.

How much memory and disk does Firefly III need?

Firefly III is light: about 100 MB with Postgres, and years of transactions take well under a gigabyte. On Pethost the Starter plan is enough for it, with room for other apps beside it.

Firefly III Docker Compose file

The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.

Containers: app (fireflyiii/core:version-6), db (postgres:18-alpine), cron (alpine:3).

Volumes, in the nightly backup: upload, db.

services:
  app:
    image: fireflyiii/core:version-6
    restart: unless-stopped
    environment:
      APP_URL: ${APP_URL}
      APP_KEY: ${APP_KEY}
      STATIC_CRON_TOKEN: ${STATIC_CRON_TOKEN}
      # TLS ends at the machine's proxy, which says so in X-Forwarded-Proto.
      TRUSTED_PROXIES: "**"
      DB_CONNECTION: pgsql
      DB_HOST: db
      DB_PORT: "5432"
      DB_DATABASE: firefly
      DB_USERNAME: firefly
      DB_PASSWORD: ${DB_PASSWORD}
      TZ: ${TZ:-UTC}
    depends_on:
      db:
        condition: service_healthy
    volumes:
      - upload:/var/www/html/storage/upload

  db:
    image: postgres:18-alpine
    restart: unless-stopped
    environment:
      POSTGRES_DB: firefly
      POSTGRES_USER: firefly
      POSTGRES_PASSWORD: ${DB_PASSWORD}
    volumes:
      - db:/var/lib/postgresql
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U firefly -d firefly"]
      interval: 5s
      timeout: 5s
      retries: 12
      start_period: 30s

  # Calls Firefly III's daily jobs at 03:00 UTC: recurring transactions, auto-budgets, bill reminders.
  cron:
    image: alpine:3
    restart: unless-stopped
    command: [sh, -c, 'echo "0 3 * * * wget -qO- http://app:8080/api/v1/cron/${STATIC_CRON_TOKEN}" | crontab - && exec crond -f -L /dev/stdout']
    depends_on:
      app:
        condition: service_healthy

volumes:
  upload:
  db:

More in Personal finance