Fix wallabag

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-06-21 18:09:09 +01:00
parent f385261545
commit 6f7fd5441a
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -44,7 +44,7 @@ spec:
restartPolicy: OnFailure restartPolicy: OnFailure
containers: containers:
- name: db-init - name: db-init
image: "wallabag/wallabag:2.6.1" image: "wallabag/wallabag:latest"
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
envFrom: envFrom:
- secretRef: - secretRef:
@ -93,6 +93,37 @@ spec:
labels: labels:
app.kubernetes.io/name: wallabag app.kubernetes.io/name: wallabag
spec: spec:
initContainers:
- name: db-migrate
image: "wallabag/wallabag:2.6.1"
imagePullPolicy: IfNotPresent
command:
- /var/www/wallabag/bin/console
- doctrine:migrations:migrate
- --env=prod
- --no-interaction
envFrom:
- secretRef:
name: wallabag
env:
- name: "SYMFONY__ENV__DATABASE_CHARSET"
value: "utf8"
- name: "SYMFONY__ENV__DATABASE_DRIVER"
value: "pdo_pgsql"
- name: "SYMFONY__ENV__DATABASE_NAME"
value: "wallabag"
- name: "SYMFONY__ENV__DATABASE_TABLE_PREFIX"
value: "wallabag_"
- name: "SYMFONY__ENV__DOMAIN_NAME"
value: "https://wallabag.cluster.fun"
- name: "SYMFONY__ENV__FOSUSER_REGISTRATION"
value: "false"
- name: "SYMFONY__ENV__LOCALE"
value: "en"
- name: "TZ"
value: "UTC"
- name: "POPULATE_DATABASE"
value: "false"
containers: containers:
- name: wallabag - name: wallabag
image: "wallabag/wallabag:2.6.1" image: "wallabag/wallabag:2.6.1"