-
Notifications
You must be signed in to change notification settings - Fork 0
/
firefly-iii.yaml
114 lines (110 loc) · 2.42 KB
/
firefly-iii.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Service configured as NodePort for Firefly-III
#---
#apiVersion: v1
#kind: Namespace
#metadata:
# name: firefly-iii
---
apiVersion: v1
kind: Service
metadata:
name: firefly-iii
labels:
app: firefly-iii
spec:
type: NodePort
ports:
- port: 8080
selector:
app: firefly-iii
tier: frontend
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: firefly-iii-upload-claim
labels:
app: firefly-iii
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: firefly-iii
labels:
app: firefly-iii
spec:
selector:
matchLabels:
app: firefly-iii
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: firefly-iii
tier: frontend
spec:
containers:
- image: jc5x/firefly-iii:latest
name: firefly-iii
env:
- name: APP_ENV
value: local
- name: APP_KEY
valueFrom:
secretKeyRef:
name: firefly-iii-secrets
key: app_key
- name: DB_HOST
value: firefly-iii-mysql
- name: DB_CONNECTION
value: mysql
- name: DB_DATABASE
value: "fireflyiii"
- name: DB_USERNAME
value: "root"
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: firefly-iii-secrets
key: db_password
- name: TRUSTED_PROXIES
value: "**"
- name: MAIL_MAILER
value: smtp
- name: MAIL_HOST
value: "smtp.mail.yahoo.com"
- name: MAIL_PORT
value: "465"
- name: MAIL_FROM
value: "YOURYAHOOMAIL@HERE"
- name: MAIL_USERNAME
valueFrom:
secretKeyRef:
name: firefly-iii-secrets
key: mail_user
- name: MAIL_PASSWORD
valueFrom:
secretKeyRef:
name: firefly-iii-secrets
key: mail_password
- name: MAIL_ENCRYPTION
value: "ssl"
ports:
- containerPort: 8080
name: firefly-iii
volumeMounts:
- mountPath: "/var/www/html/firefly-iii/storage/upload"
name: firefly-iii-upload
imagePullPolicy: Always
volumes:
- name: firefly-iii-upload
persistentVolumeClaim:
claimName: firefly-iii-upload-claim