2021-12-13 12:44:45 +00:00
|
|
|
image:
|
|
|
|
repository: tccr.io/truecharts/blog
|
|
|
|
pullPolicy: IfNotPresent
|
2021-12-19 15:38:26 +00:00
|
|
|
tag: latest@sha256:8f8164929c47c071024cabf591fbaea4f468dcddf3c276c3114d754c9e24dc47
|
2021-12-13 12:44:45 +00:00
|
|
|
|
|
|
|
secret:
|
|
|
|
BLOG_NICK: username
|
|
|
|
BLOG_PASS: password
|
|
|
|
|
|
|
|
securityContext:
|
|
|
|
runAsNonRoot: false
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
runAsGroup: 0
|
|
|
|
|
|
|
|
# See more environment variables in the blog documentation
|
|
|
|
# https://github.com/nicholaswilde/docker-blog
|
|
|
|
env:
|
|
|
|
BLOG_TITLE: Blog
|
|
|
|
BLOG_NAME: Max Musermann
|
|
|
|
BLOG_LANG: en
|
|
|
|
BLOG_DB_CONNECTION: postgres
|
|
|
|
BLOG_POSTGRES_USER: blog
|
|
|
|
BLOG_POSTGRES_PORT: 5432
|
|
|
|
BLOG_DB_NAME: blog
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 10111
|
|
|
|
targetPort: 80
|
|
|
|
|
|
|
|
persistence:
|
|
|
|
data:
|
|
|
|
enabled: true
|
2021-12-18 20:15:35 +00:00
|
|
|
mountPath: "/var/www/html/data"
|
2021-12-13 12:44:45 +00:00
|
|
|
|
|
|
|
envValueFrom:
|
|
|
|
BLOG_POSTGRES_PASS:
|
|
|
|
secretKeyRef:
|
|
|
|
name: dbcreds
|
|
|
|
key: postgresql-password
|
|
|
|
BLOG_POSTGRES_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: dbcreds
|
|
|
|
key: plainhost
|
|
|
|
|
|
|
|
# Enabled postgres
|
|
|
|
postgresql:
|
|
|
|
enabled: true
|
|
|
|
existingSecret: "dbcreds"
|
|
|
|
postgresqlUsername: blog
|
|
|
|
postgresqlDatabase: blog
|