This commit is contained in:
2026-02-10 13:40:57 +02:00
parent 0f7306abcb
commit b939fdf81e
6 changed files with 233 additions and 0 deletions

48
memelord.yaml Normal file
View File

@@ -0,0 +1,48 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: memelord
spec:
replicas: 1
selector:
matchLabels:
app: memelord
template:
metadata:
labels:
app: memelord
spec:
containers:
- name: memelord
image: ghcr.io/l4rm4nd/memelord:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 8000
volumeMounts:
- mountPath: /opt/app/myproject/settings.py
name: settings-volume
subPath: settings.py
env:
- name: DOMAIN
value: aldo-memelord.ee-lte-1.codemowers.io
- name: POSTGRES_USER
value: aldo-memelord
- name: POSTGRES_HOST
value: aldo-memelord-database-rw
- name: POSTGRES_PORT
value: "5432"
- name: DB_ENGINE
value: postgres
- name: POSTGRES_DATABASE
value: aldo-memelord
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: aldo-memelord-database
key: password
volumes:
- name: settings-volume
configMap:
name: settings