add ptp-chat configuration
All checks were successful
Mirror to GitHub / mirror (push) Successful in 7s

This commit is contained in:
jona.klaess
2026-06-06 15:21:00 +02:00
parent 67c0624079
commit 78cf3c8c8d
11 changed files with 392 additions and 0 deletions

62
ptp-chat/ptp-chat-db.yaml Normal file
View File

@@ -0,0 +1,62 @@
---
# Source: portainer/templates/pvc.yaml
kind: "PersistentVolumeClaim"
apiVersion: "v1"
metadata:
name: ptp-chat-pvc
namespace: ptp-chat
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ptp-chat-db
namespace: ptp-chat
labels:
app: ptp-chat-db
spec:
replicas: 1
selector:
matchLabels:
app: ptp-chat-db
template:
metadata:
labels:
app: ptp-chat-db
spec:
containers:
- name: ptp-chat-db
image: postgres:latest
envFrom:
- secretRef:
name: ptp-chat-secret
env:
- name: POSTGRES_USER
value: "${SPRING_DATASOURCE_USERNAME}"
- name: POSTGRES_PASSWORD
value: "${SPRING_DATASOURCE_PASSWORD}"
- name: POSTGRES_DB
value: "praxistransfer"
ports:
- name: http
containerPort: 5432
resources:
requests:
memory: 0.5Gi
cpu: 1
limits:
memory: 1Gi
cpu: 2
volumeMounts:
- name: ptp-chat-pvc
mountPath: /var/lib/postgresql/data
readOnly: false
volumes:
- name: ptp-chat-pvc
persistentVolumeClaim:
claimName: ptp-chat-pvc