From 8f4a24a3816ac4d44079fba406608eb2b532d925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Sch=C3=BCler?= Date: Sun, 26 Oct 2025 00:05:54 +0200 Subject: [PATCH] added firefly-iii --- apps/firefly-iii/db.yaml | 45 +++++++++++++++++++ apps/firefly-iii/deployment.yaml | 77 ++++++++++++++++++++++++++++++++ apps/firefly-iii/pvc.yaml | 21 +++++++++ 3 files changed, 143 insertions(+) create mode 100644 apps/firefly-iii/db.yaml create mode 100644 apps/firefly-iii/deployment.yaml create mode 100644 apps/firefly-iii/pvc.yaml diff --git a/apps/firefly-iii/db.yaml b/apps/firefly-iii/db.yaml new file mode 100644 index 0000000..1968486 --- /dev/null +++ b/apps/firefly-iii/db.yaml @@ -0,0 +1,45 @@ + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: firefly-db +spec: + replicas: 1 + selector: + matchLabels: + app: firefly-db + template: + metadata: + labels: + app: firefly-db + spec: + containers: + - name: postgres + image: postgres:15 + env: + - name: POSTGRES_USER + value: firefly + - name: POSTGRES_PASSWORD + value: fireflypass + - name: POSTGRES_DB + value: firefly + ports: + - containerPort: 5432 + volumeMounts: + - name: db-storage + mountPath: /var/lib/postgresql/data + volumes: + - name: db-storage + persistentVolumeClaim: + claimName: firefly-db-pvc +--- +apiVersion: v1 +kind: Service +metadata: + name: firefly-db +spec: + selector: + app: firefly-db + ports: + - port: 5432 + targetPort: 5432 diff --git a/apps/firefly-iii/deployment.yaml b/apps/firefly-iii/deployment.yaml new file mode 100644 index 0000000..87337ce --- /dev/null +++ b/apps/firefly-iii/deployment.yaml @@ -0,0 +1,77 @@ + +apiVersion: apps/v1 +kind: Deployment +metadata: + name: firefly +spec: + replicas: 1 + selector: + matchLabels: + app: firefly + template: + metadata: + labels: + app: firefly + spec: + containers: + - name: firefly + image: fireflyiii/core:version-6.1.14 + ports: + - containerPort: 8080 + env: + # === Base URL & App Settings === + - name: APP_KEY + value: base64:CHANGE_ME_TO_A_SECURE_KEY + - name: APP_URL + value: "http://raspberrypi.local:30090" + - name: TRUSTED_PROXIES + value: "**" + - name: APP_ENV + value: local + - name: APP_DEBUG + value: "false" + - name: DEFAULT_LANGUAGE + value: en_US + # === Database === + - name: DB_CONNECTION + value: pgsql + - name: DB_HOST + value: firefly-db + - name: DB_PORT + value: "5432" + - name: DB_DATABASE + value: firefly + - name: DB_USERNAME + value: firefly + - name: DB_PASSWORD + value: fireflypass + # === Timezone & Locale === + - name: TZ + value: Europe/Berlin + volumeMounts: + - name: firefly-data + mountPath: /var/www/html/storage/upload + resources: + requests: + memory: "256Mi" + cpu: "200m" + limits: + memory: "1Gi" + cpu: "500m" + volumes: + - name: firefly-data + persistentVolumeClaim: + claimName: firefly-data-pvc +--- +apiVersion: v1 +kind: Service +metadata: + name: firefly +spec: + type: NodePort + selector: + app: firefly + ports: + - port: 8080 + targetPort: 8080 + nodePort: 30090 diff --git a/apps/firefly-iii/pvc.yaml b/apps/firefly-iii/pvc.yaml new file mode 100644 index 0000000..cd410f3 --- /dev/null +++ b/apps/firefly-iii/pvc.yaml @@ -0,0 +1,21 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: firefly-data-pvc +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: firefly-db-pvc +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi