Run Firefly III's daily jobs (#24)
Recurring transactions and auto-budgets only happen when Firefly's cron runs. Add a service that runs it hourly as www-data; each day's work is done once, and missed days are caught up.
This commit is contained in:
1 parent
78ce8d85ce
commit
fc60fc9ed1
2 files changed
+24
-5
No files matched your search
@@ -8,7 +8,7 @@ Outgoing mail ports are blocked on Cottage, so password reset emails can't be se
|
||||
|
||||
## Get started
|
||||
|
||||
Firefly III walks you through adding your first bank account and its opening balance. From there, add transactions by hand or bring them in with the separate Firefly III Data Importer from a CSV file. **Automation → Rules** can sort new transactions into categories and budgets for you.
|
||||
Firefly III walks you through adding your first bank account and its opening balance. From there, add transactions by hand or bring them in with the separate Firefly III Data Importer from a CSV file. **Automation → Rules** can sort new transactions into categories and budgets for you. Recurring transactions and auto-budgets are created for you each day.
|
||||
|
||||
## Export your data
|
||||
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
# Firefly III: personal finance manager. The app and its PostgreSQL database.
|
||||
# Firefly III: personal finance manager. The app, a cron service for its daily jobs, and
|
||||
# its PostgreSQL database.
|
||||
x-harbor:
|
||||
slug: firefly-iii
|
||||
name: Firefly III
|
||||
description: Personal finance manager with budgets, rules and reports.
|
||||
version: "6.7.9-c2"
|
||||
version: "6.7.9-c3"
|
||||
primary: { service: app, port: 8080 }
|
||||
health_path: /health
|
||||
default_resources: { cpu_millis: 500, memory_mb: 768, storage_mb: 5120 }
|
||||
min_resources: { cpu_millis: 250, memory_mb: 384, storage_mb: 1024 }
|
||||
weights: { app: 3, db: 1 }
|
||||
weights: { app: 3, cron: 1, db: 1 }
|
||||
volumes:
|
||||
upload: { uid: 33, gid: 33, mode: "0750" }
|
||||
db_data: { uid: 70, gid: 70, mode: "0700" }
|
||||
@@ -25,7 +26,7 @@ services:
|
||||
user: "33:33"
|
||||
depends_on:
|
||||
db: { condition: service_healthy }
|
||||
environment:
|
||||
environment: &firefly_env
|
||||
APP_ENV: production
|
||||
APP_KEY: ${APP_KEY}
|
||||
APP_URL: ${HARBOR_PUBLIC_URL}
|
||||
@@ -41,6 +42,24 @@ services:
|
||||
MAIL_MAILER: log
|
||||
volumes: [ "upload:/var/www/html/storage/upload" ]
|
||||
|
||||
# Recurring transactions, auto-budgets and bill reminders need Firefly's daily cron.
|
||||
# Run it hourly: it does each day's work once and catches up after a restart.
|
||||
cron:
|
||||
image: fireflyiii/core:version-6.7.9
|
||||
user: "33:33"
|
||||
depends_on:
|
||||
db: { condition: service_healthy }
|
||||
environment: *firefly_env
|
||||
entrypoint: [ "/bin/sh", "-c" ]
|
||||
command:
|
||||
- |
|
||||
sleep 300 # let the app finish its migrations first
|
||||
while true; do
|
||||
php /var/www/html/artisan firefly-iii:cron || true
|
||||
sleep 3600
|
||||
done
|
||||
healthcheck: { disable: true }
|
||||
|
||||
db:
|
||||
image: postgres:18.7-alpine
|
||||
user: "70:70"
|
||||
|
||||
Reference in new issue
Block a user