Self-host Firefly III
Self-hosted personal finance manager that tracks expenses and income with budgets, categories, tags, imports and reports. Run your own Firefly III on an always-on EnvHaven workspace by asking its coding agent: one request installs it, puts it on an HTTPS address and locks it down. What the agent takes care of, and the manual route.
Updated November 23, 2026
Running your own Firefly III usually means a list of server chores: a machine that stays on, Docker or a runtime, a reverse proxy with certificates, a domain, and the settings that make Firefly III behave behind all of it. On an EnvHaven workspace you skip the list. You ask the coding agent, and it does the work while you watch.
Just ask your agent
Open a Plus workspace (Firefly III runs in Docker, which Plus and Pro include), tap Launch to start any coding agent (Claude Code, Codex, OpenCode or another), and ask it:
Set up Firefly III on this workspace and give me the link. Follow https://envhaven.com/self-host/firefly-iii.md
Then open the link it sends and create your Firefly III account straight away, before anyone else finds the address. That is the whole request: the address in it is this page’s Markdown copy, and the agent follows the instructions for it further down, with every setting Firefly III’s docs require.
Or keep it private with Tailscale
The preview URL puts Firefly III on the public internet, which suits something other people need to reach. For an app only you and your household use, your tailnet is the better home: Tailscale gives Firefly III an HTTPS address that only your own devices, signed in to your Tailscale account, can open. Save a Tailscale auth key in the workspace’s Vars pane as TS_AUTHKEY, and ask the agent:
Set up Firefly III on my tailnet instead of the preview URL. Follow https://envhaven.com/self-host/firefly-iii.md and https://envhaven.com/guides/self-host-privately-with-tailscale.md
- A Tailscale container runs beside Firefly III, so it keeps its private address through workspace restarts and updates, and every app you set up this way gets an address of its own.
- Anything other services have to reach, such as a webhook, still needs a public address. Keep self-hosted apps private with Tailscale covers both, and what Tailscale’s free plan includes.
| At a glance | |
|---|---|
| What it is | Home, money and everyday life |
| License | AGPL-3.0 |
| Runs as | Docker (fireflyiii/core) |
| Memory | Not documented |
| Plan that fits | Plus or larger |
| Web port | 8080 |
| Documentation | docs.firefly-iii.org/how-to/firefly-iii/installation/docker/ |
What your agent takes care of
- Installing it. Firefly III runs from the official image,
fireflyiii/core, with its data in folders under~/apps/firefly-iii. - Putting it on an HTTPS address. The workspace’s preview URL serves it, and your own domain can too.
- Locking it down first. What Firefly III’s docs say to set before it faces the internet, below.
- Telling you what to back up: firefly_iii_upload volume at /var/www/html/storage/upload (attachments), firefly_iii_db volume at /var/lib/mysql (MariaDB data), the .env file or launch variables, especially APP_KEY and SQLite file under /storage/database for a native SQLite install (docs).
The settings it needs behind a proxy
APP_URL: Must match the external URL of the installation; used to validate some requests and to build links in emails. (docs)TRUSTED_PROXIES: Lets Firefly III trust the reverse proxy; the sample file suggests the wildcard value. Without it, CSP errors and http links appear behind a proxy. (docs)- X-Forwarded-Proto header (set by the proxy): Both Firefly III and the Data Importer read this header to know the public scheme is https. (docs)
COOKIE_SECURE(default false),COOKIE_DOMAIN,COOKIE_SAMESITE(default lax): Cookie flags in .env; the sample file says they should not need changing. (docs)- Proxy header buffer size: A reverse proxy needs a large enough maximum header size, or actions such as logging in fail. (docs)
Before it faces the internet
- The first account to register becomes the owner, so register yours right after the first start, before the address is public. (docs)
- Registration closes after the first user and can be reopened under /settings/configuration. (docs)
- TLS is not built in; terminate it at the reverse proxy. (docs)
- Change the database password before the first start. (docs)
- Set a random 32-character APP_KEY. (docs)
- The cron token must be exactly 32 characters. (docs)
- Uploaded attachments are stored unencrypted. (docs)
Things to ask next
Everything after the install is one more sentence to the agent. Some that come up:
- “Import last year’s data from the CSV I dropped into the workspace.”
- “Set up a second account for the household.”
- “Move Firefly III to app.example.com.” Add the domain on the dashboard’s Domains page with a CNAME to
domains.envhaven.app, and the agent changes Firefly III’s address settings to match. - “Update Firefly III to the latest release.” It pulls the new image and recreates the container, data kept.
Instructions for the agent
The agent reads these from the page’s Markdown copy. They also work pasted on their own, if you would rather give them in your own words.
Set up Firefly III on this workspace and serve it at my preview URL.
- Use Docker Compose with the official image, fireflyiii/core, starting from the docs' compose file: https://github.com/firefly-iii/docker/blob/main/docker-compose.yml. If `docker compose` is missing, install the Compose plugin into ~/.docker/cli-plugins first.
- The docs' setup includes: MariaDB or MySQL (mariadb:lts in the compose file; PostgreSQL is an alternative); a cron container (alpine) that calls the app's cron URL once a day.
- Keep the compose file in ~/apps/firefly-iii and all of its data in folders there (bind mounts, not named volumes), with restart: unless-stopped on every service.
- This server has no firewall, so publish no port on its public IP, and drop host networking and privileged mode from the docs' compose file. Docker runs on the host: connect this workspace to the compose network and relay my preview URL's port to Firefly III's port 8080.
- The preview URL terminates HTTPS in front of Firefly III: serve plain HTTP on its port, and trust the forwarded headers the relay passes on.
- Set what "The settings it needs behind a proxy" lists on https://envhaven.com/self-host/firefly-iii.md for the preview URL, as Firefly III's docs describe for running behind a proxy; skip any that apply only when Firefly III serves HTTPS itself.
- Before the preview URL serves it, apply what "Before it faces the internet" lists on https://envhaven.com/self-host/firefly-iii.md.
- When it answers at the preview URL, send me the link and tell me what to back up.
- If I asked for my tailnet instead of the preview URL, set Firefly III up the same way but follow https://envhaven.com/guides/self-host-privately-with-tailscale.md for the network: no preview URL, no relay.
What to know
- In Docker, Firefly III’s containers keep running when the workspace restarts or updates. The relay from the preview URL is a process in the workspace, so after a restart or an update, ask the agent to restore it.
- Recurring transactions, auto-budgets and exchange rates only work with a scheduled cron call, which the Docker route covers with a separate cron container. (docs)
- Cloudflare’s email obfuscation breaks the charts. (docs)
- The documented nginx block sets a 64M request body limit, under a 100 MB tunnel cap. (docs)
- Email is off by default (log mailer); sending needs the MAIL_* settings. (docs)
- Docker images do not exist for linux/386, linux/arm/v6 or linux/arm/v7. (docs)
- A workspace has one preview URL and one custom domain, both serving the same port, so it puts one app on a public address at a time.
Without a workspace
The manual route, on a server you run:
- Rent a Linux VPS, secure SSH, and create a user for the app.
- Install Docker and write a compose file from the official image.
- Put a reverse proxy in front (Caddy, nginx or Traefik), get certificates, and point a domain at the server.
- Set the proxy settings listed above for that domain, and pass WebSocket upgrades through the proxy if the app uses them.
- Keep the firewall closed except for the proxy, and schedule backups and updates.
Firefly III’s own documentation covers each step for its install methods.
Sources
Facts about Firefly III come from its own documentation, checked on 2026-11-23:
- docs.firefly-iii.org/how-to/firefly-iii/installation/docker
- github.com/firefly-iii/firefly-iii/blob/main/.env.example
- docs.firefly-iii.org/references/faq/install
- docs.firefly-iii.org/references/faq/docker
- docs.firefly-iii.org/how-to/firefly-iii/advanced/cron
- docs.firefly-iii.org/how-to/firefly-iii/advanced/backup
- docs.firefly-iii.org/explanation/more-information/security