mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-05 05:19:59 +00:00
50
seafile/seafile-deployment.yaml
Normal file
50
seafile/seafile-deployment.yaml
Normal file
@@ -0,0 +1,50 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: seafile
|
||||
namespace: seafile
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: seafile
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: seafile
|
||||
spec:
|
||||
containers:
|
||||
- name: seafile
|
||||
image: docker.seadrive.org/seafileltd/seafile-pro-mc:11.0-latest
|
||||
env:
|
||||
- name: DB_HOST
|
||||
value: "mariadb"
|
||||
- name: DB_ROOT_PASSWD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: mariadb-root-password
|
||||
key: MARIADB_ROOT_PASSWORD
|
||||
- name: TIME_ZONE
|
||||
value: "America/Toronto"
|
||||
- name: SEAFILE_ADMIN_EMAIL
|
||||
value: "seafile@michaelthomson.dev" #admin email
|
||||
- name: SEAFILE_ADMIN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: seafile-admin-password
|
||||
key: SEAFILE_ADMIN_PASSWORD
|
||||
- name: SEAFILE_SERVER_LETSENCRYPT
|
||||
value: "false"
|
||||
- name: SEAFILE_SERVER_HOSTNAME
|
||||
value: "seafile.michaelthomson.dev" #hostname
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: seafile-data
|
||||
mountPath: /shared
|
||||
volumes:
|
||||
- name: seafile-data
|
||||
persistentVolumeClaim:
|
||||
claimName: seafile-data
|
||||
restartPolicy: Always
|
||||
Reference in New Issue
Block a user