You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: lychee
namespace: lychee
labels:
app: lychee
spec:
replicas: 1
selector:
matchLabels:
app: lychee
template:
metadata:
labels:
app: lychee
spec:
containers:
- image: linuxserver/lychee:5.2.0
name: lychee
volumeMounts:
- name: lychee-uploads
mountPath: "/pictures"
- name: lychee-config
mountPath: "/config"
# - name: lychee-sym
# mountPath: "/lychee/sym"
- name: lychee-sqlite
mountPath: "/lychee/db"
ports:
- containerPort: 80
name: http
protocol: TCP
env:
- name: PHP_TZ
value: Europe/Berlin
- name: TIMEZONE
value: Europe/Berlin
- name: DB_CONNECTION
value: sqlite
- name: DB_DATABASE
value: /lychee/db/lychee.db
- name: APP_URL
value: https://lychee.trivernis.net
- name: TRUSTED_PROXIES
value: '*'
- name: APP_FORCE_HTTPS
value: 'true'
- name: LIVEWIRE_ENABLED
value: 'true'
volumes:
- name: lychee-sym
persistentVolumeClaim:
claimName: lychee-sym-pvc
- name: lychee-sqlite
persistentVolumeClaim:
claimName: lychee-sqlite-pvc
- name: lychee-uploads
persistentVolumeClaim:
claimName: lychee-uploads-pvc
- name: lychee-config
persistentVolumeClaim:
claimName: lychee-config-pvc