---
title: "Deploy Firefly III 6.7 (Personal Finance, Postgres, Redis, Cron)"
description: "Self-hosted personal finance manager with budgets, rules and daily cron."
category: "Other"
url: https://railway.com/deploy/firefly-iii-67-personal-finance-postgres
---

# Deploy Firefly III 6.7 (Personal Finance, Postgres, Redis, Cron)

Self-hosted personal finance manager with budgets, rules and daily cron.

**[Deploy Firefly III 6.7 (Personal Finance, Postgres, Redis, Cron) on Railway](https://railway.com/template/firefly-iii-67-personal-finance-postgres)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/firefly-iii-67-personal-finance-postgres/manifest.json

- **Creator:** Tracklayer
- **Category:** Other
- **Total deploys:** 1

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18.6@sha256:4fc833b43d2aaf6ecc9b18615f5533602b723a32d0e2efe2dae8ca0f7217c863

### Cron https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/firefly-iii.svg

- **Image:** alpine:3.24.4@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf
- **Start command:** `/bin/sh -c 'echo "railway-cron: running Firefly III jobs"; wget -q -T 900 -O /tmp/out "$FIREFLY_URL/api/v1/cron/$STATIC_CRON_TOKEN"; rc=$?; cat /tmp/out; echo; echo "railway-cron: finished with exit code $rc"; exit $rc'`

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.11@sha256:b0b01167ff47bc3868e56a967895a26be4230891a1f42a78ab61cdd227accc8d
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Firefly III https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/firefly-iii.svg

- **Source:** baranberkay96/firefly-iii-railway
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host Firefly III with Railway

Firefly III is a free, open-source personal finance manager: accounts, budgets, categories, bills, piggy banks, rules and reports, built on double-entry bookkeeping. This template runs it on Railway with Postgres, Redis, a daily cron job and an owner account that is created for you before the app goes online.

## About Hosting Firefly III

Firefly III is a Laravel (PHP) application. A production setup needs a database, a persistent storage folder (attachments, OAuth keys for the API), a cache and session store, and a daily call to its cron endpoint that creates recurring transactions, sends bill reminders and refreshes exchange rates. A fresh install lets the first visitor register and become the administrator. This community template pins the official 6.7.9 image, stores data in Postgres, sessions and cache in Redis, keeps the whole `storage` folder on a volume (so API tokens survive redeploys), runs the cron job daily, and creates the owner from your email and a generated password before nginx starts. Firefly III's single-user mode then keeps registration closed.

## Common Use Cases

- Tracking income, spending and account balances across banks, cards and cash
- Monthly budgets, bills and savings goals (piggy banks) with reports
- Automating categorisation with rules for imported transactions
- Multi-currency households and travellers
- A personal finance API for scripts, apps and the Firefly III Data Importer

## Dependencies for Firefly III Hosting

- Firefly III web service (nginx + PHP-FPM, official image) with a volume for `storage`
- Postgres (accounts, transactions, settings)
- Redis (sessions and cache)
- Cron service (daily call to `/api/v1/cron/{token}` on the private network)

### Deployment Dependencies

- [Firefly III documentation](https://docs.firefly-iii.org/)
- [Docker installation guide](https://docs.firefly-iii.org/how-to/firefly-iii/installation/docker/)
- [Cron jobs](https://docs.firefly-iii.org/how-to/firefly-iii/advanced/cron/)
- [Firefly III on GitHub](https://github.com/firefly-iii/firefly-iii)

### Implementation Details

| Service | What runs inside | Volume | Port |
|---|---|---|---|
| Firefly III | Firefly III 6.7.9 (nginx + PHP-FPM) | `/var/www/html/storage` | 8080, public domain |
| Cron | Alpine, calls the Firefly III cron endpoint daily at 03:00 UTC, then exits | none | none |
| Postgres | PostgreSQL 18 | `/var/lib/postgresql/data` | private |
| Redis | Redis 8.2 | `/data` | private |

**First login**

1. Enter your email in `FIREFLY_OWNER_EMAIL` when you deploy.
2. Open `https://{your-domain}` and log in with that email and the generated `FIREFLY_OWNER_PASSWORD` (Variables tab of the Firefly III service).
3. Follow Firefly III's first-run steps: default currency, your first asset account.

**Owner password.** `FIREFLY_OWNER_PASSWORD` is checked at every start: if it differs from the stored password of the user with `FIREFLY_OWNER_EMAIL`, the stored one is replaced. Change the variable and redeploy rather than changing the password in the app (an in-app change is reset at the next redeploy). A value shorter than 16 characters is ignored with a warning in the deploy log: an existing password stays, and a brand-new install gets a random owner password until you set a valid one. More users can be invited from the administration pages.

**Keys.** `APP_KEY` encrypts stored data and must stay the same for the life of the install. `STATIC_CRON_TOKEN` (32 characters) authorises the Cron service; you can run the jobs by hand from Railway's cron view ("Run now").

**Email.** Mail is written to the log by default (`MAIL_MAILER=log`). Railway allows outbound SMTP only on the Pro plan; on other plans use an HTTP API mailer Firefly III supports (`mailgun` with `MAILGUN_DOMAIN`/`MAILGUN_SECRET`, `mailersend` with `MAILERSEND_API_KEY`, `mandrill`, `sparkpost`).

**Importing data.** Firefly III imports through its separate Data Importer (CSV, camt.053, GoCardless, SimpleFIN, Spectre). It is not included to keep this template small and its upload page private; add it as another service from the `fireflyiii/data-importer` image with `FIREFLY_III_URL=http://${{Firefly III.RAILWAY_PRIVATE_DOMAIN}}:8080` and put it behind authentication if you give it a public domain.

**Scaling and upgrades.** Keep one Firefly III replica (the storage volume belongs to one service). The stack idles at roughly 0.4 GB RAM in total and fits Hobby; the web service alone fits Trial. To upgrade, eject the repo and change the `fireflyiii/core` tag and digest in `services/firefly/Dockerfile`, then redeploy; database migrations run on start. Back up Postgres before major upgrades.

### Why Deploy Firefly III on Railway?

Railway gives Firefly III managed Postgres and Redis, HTTPS, persistent storage and scheduled jobs in one project, so the complete self-hosted setup runs without a server to maintain. This template adds pinned versions, a database-backed healthcheck and an owner account created before anyone can reach the registration page.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/firefly-iii-67-personal-finance-postgres
