# Self-host Firefly III

> A self-hosted personal finance manager for tracking budgets, bills, and spending.

- Page: https://levelrail.com/templates/firefly-iii/
- JSON: https://levelrail.com/templates/firefly-iii.json
- Category: Finance
- Licence: AGPL-3.0-or-later (Network copyleft (AGPL) license)
- Source: https://github.com/firefly-iii/firefly-iii
- Upstream docs: https://docs.firefly-iii.org

## Requirements
- Memory: about 512 MiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: version-6.2.3

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| db | mariadb | 11 | none | firefly_db_data -> /var/lib/mysql |
| firefly | fireflyiii/core | version-6.2.3 | 8080 | firefly_upload_data -> /var/www/html/storage/upload |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| db | MYSQL_DATABASE | preset |
| db | MYSQL_PASSWORD | generated |
| db | MYSQL_ROOT_PASSWORD | generated |
| db | MYSQL_USER | preset |
| firefly | APP_KEY | generated |
| firefly | APP_URL | preset |
| firefly | DB_CONNECTION | preset |
| firefly | DB_DATABASE | preset |
| firefly | DB_HOST | preset |
| firefly | DB_PASSWORD | generated |
| firefly | DB_USERNAME | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy firefly-iii --name my-firefly-iii
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/firefly-iii/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### Can I deploy Firefly III on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id firefly-iii for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image mariadb:11, fireflyiii/core:version-6.2.3 is what you deploy there.

Self-host Firefly III, Firefly III docker compose file, deploy Firefly III on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
