62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: firefly
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
strategy:
|
||
|
|
type: Recreate
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app: firefly
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app: firefly
|
||
|
|
spec:
|
||
|
|
securityContext:
|
||
|
|
# The image runs as www-data (33).
|
||
|
|
fsGroup: 33
|
||
|
|
containers:
|
||
|
|
- name: firefly
|
||
|
|
image: fireflyiii/core:version-6.7.8
|
||
|
|
ports:
|
||
|
|
- name: http
|
||
|
|
containerPort: 8080
|
||
|
|
# APP_KEY, DB_PASSWORD, STATIC_CRON_TOKEN.
|
||
|
|
envFrom:
|
||
|
|
- secretRef:
|
||
|
|
name: firefly-secrets
|
||
|
|
env:
|
||
|
|
- name: APP_URL
|
||
|
|
value: https://firefly.un-oeil.fr
|
||
|
|
- name: TRUSTED_PROXIES
|
||
|
|
value: "**"
|
||
|
|
- name: TZ
|
||
|
|
value: Europe/Paris
|
||
|
|
- name: DEFAULT_LANGUAGE
|
||
|
|
value: fr_FR
|
||
|
|
- name: DB_CONNECTION
|
||
|
|
value: pgsql
|
||
|
|
- name: DB_HOST
|
||
|
|
value: postgres.postgres.svc
|
||
|
|
- name: DB_PORT
|
||
|
|
value: "5432"
|
||
|
|
- name: DB_DATABASE
|
||
|
|
value: firefly
|
||
|
|
- name: DB_USERNAME
|
||
|
|
value: firefly
|
||
|
|
volumeMounts:
|
||
|
|
- name: upload
|
||
|
|
mountPath: /var/www/html/storage/upload
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: 50m
|
||
|
|
memory: 128Mi
|
||
|
|
limits:
|
||
|
|
memory: 512Mi
|
||
|
|
volumes:
|
||
|
|
- name: upload
|
||
|
|
persistentVolumeClaim:
|
||
|
|
claimName: firefly-upload
|