added firefly-iii
This commit is contained in:
parent
2a8f2384bc
commit
8f4a24a381
45
apps/firefly-iii/db.yaml
Normal file
45
apps/firefly-iii/db.yaml
Normal file
@ -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
|
||||
77
apps/firefly-iii/deployment.yaml
Normal file
77
apps/firefly-iii/deployment.yaml
Normal file
@ -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
|
||||
21
apps/firefly-iii/pvc.yaml
Normal file
21
apps/firefly-iii/pvc.yaml
Normal file
@ -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
|
||||
Loading…
Reference in New Issue
Block a user