48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
labels:
|
|
io.kompose.service: mailarchive-app
|
|
name: mailarchive-app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: mailarchive-app
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
labels:
|
|
io.kompose.service: mailarchive-app
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: Authentication__Password
|
|
value: secure123!
|
|
- name: Authentication__Username
|
|
value: admin
|
|
- name: ConnectionStrings__DefaultConnection
|
|
value: Host=postgres;Database=MailArchiver;Username=mailuser;Password=masterkey;
|
|
- name: TimeZone__DisplayTimeZoneId
|
|
value: Etc/UCT
|
|
image: s1t5/mailarchiver:latest
|
|
name: mailarchive-app
|
|
ports:
|
|
- containerPort: 5000
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- mountPath: /app/DataProtection-Keys
|
|
name: mailarchive-app-claim0
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: mailarchive-app-claim0
|
|
persistentVolumeClaim:
|
|
claimName: mailarchive-app-claim0
|