Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ I use a [pgautoupgrade/docker-pgautoupgrade](https://github.com/pgautoupgrade/do
# Init Container for Major PostgreSQL Upgrades, not needed permanently
initContainers:
- name: pgautoupgrade
image: pgautoupgrade/pgautoupgrade:17-bookworm
image: pgautoupgrade/pgautoupgrade:18-debian
securityContext:
runAsUser: 0
runAsGroup: 0
Expand Down
48 changes: 15 additions & 33 deletions apps/authelia/hr-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
postgresql:
image:
repository: public.ecr.aws/docker/library/postgres
tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d
tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39
env:
POSTGRES_DB: authelia
POSTGRES_USER: authelia
Expand Down Expand Up @@ -70,38 +70,20 @@ spec:
enabled: true
readiness:
enabled: true
# initContainers:
# # # Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently
# # bitnami-migrate:
# # image:
# # repository: alpine
# # tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
# # command:
# # - /bin/sh
# # - -c
# # - |
# # chown -R 999:999 $PGDATA
# # [ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA
# # [ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA
# # env:
# # PGDATA: /var/lib/postgresql/data
# # securityContext:
# # runAsUser: 0
# # runAsGroup: 0

# # # Init Container for Major PostgreSQL Upgrades, not needed permanently
# # pgautoupgrade:
# # image:
# # repository: pgautoupgrade/pgautoupgrade
# # tag: 17-bookworm
# # # securityContext:
# # # runAsUser: 0
# # # runAsGroup: 0
# # env:
# # PGAUTO_ONESHOT: yes
# # POSTGRES_USER: authelia
# # POSTGRES_DB: authelia
# # PGDATA: /var/lib/postgresql/data
initContainers:
# Init Container for Major PostgreSQL Upgrades, not needed permanently
pgautoupgrade:
image:
repository: pgautoupgrade/pgautoupgrade
tag: 18-debian
securityContext:
runAsUser: 0
runAsGroup: 0
env:
PGAUTO_ONESHOT: "yes"
POSTGRES_USER: authelia
POSTGRES_DB: authelia
PGDATA: /var/lib/postgresql/data
service:
primary:
controller: primary
Expand Down
28 changes: 14 additions & 14 deletions apps/immich/hr-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,20 @@ spec:
enabled: true
readiness:
enabled: true
# initContainers:
# # Init Container for Major PostgreSQL Upgrades, not needed permanently
# pgautoupgrade:
# image:
# repository: ghcr.io/pumba98/pgautoupgrade-vchord
# tag: 17-debian-v0.3.0
# # securityContext:
# # runAsUser: 0
# # runAsGroup: 0
# env:
# PGAUTO_ONESHOT: yes
# POSTGRES_USER: immich
# POSTGRES_DB: immich
# PGDATA: /var/lib/postgresql/data
initContainers:
# Init Container for Major PostgreSQL Upgrades, not needed permanently
pgautoupgrade:
image:
repository: ghcr.io/pumba98/pgautoupgrade-vchord
tag: 18-debian-v0.4.3
securityContext:
runAsUser: 0
runAsGroup: 0
env:
PGAUTO_ONESHOT: "yes"
POSTGRES_USER: immich
POSTGRES_DB: immich
PGDATA: /var/lib/postgresql/data
service:
primary:
controller: primary
Expand Down
45 changes: 15 additions & 30 deletions apps/linkwarden/hr-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
postgresql:
image:
repository: public.ecr.aws/docker/library/postgres
tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d
tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39
env:
POSTGRES_DB: linkwarden
POSTGRES_USER: linkwarden
Expand Down Expand Up @@ -70,35 +70,20 @@ spec:
enabled: true
readiness:
enabled: true
# initContainers:
# # # Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently
# # bitnami-migrate:
# # image:
# # repository: alpine
# # tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
# # command:
# # - /bin/sh
# # - -c
# # - |
# # chown -R 999:999 $PGDATA
# # [ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA
# # [ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA
# # env:
# # PGDATA: /var/lib/postgresql/data

# # # Init Container for Major PostgreSQL Upgrades, not needed permanently
# # pgautoupgrade:
# # image:
# # repository: pgautoupgrade/pgautoupgrade
# # tag: 17-bookworm
# # # securityContext:
# # # runAsUser: 0
# # # runAsGroup: 0
# # env:
# # PGAUTO_ONESHOT: yes
# # POSTGRES_USER: linkwarden
# # POSTGRES_DB: linkwarden
# # PGDATA: /var/lib/postgresql/data
initContainers:
# Init Container for Major PostgreSQL Upgrades, not needed permanently
pgautoupgrade:
image:
repository: pgautoupgrade/pgautoupgrade
tag: 18-debian
securityContext:
runAsUser: 0
runAsGroup: 0
env:
PGAUTO_ONESHOT: "yes"
POSTGRES_USER: linkwarden
POSTGRES_DB: linkwarden
PGDATA: /var/lib/postgresql/data
service:
primary:
controller: primary
Expand Down
38 changes: 10 additions & 28 deletions apps/memos/hr-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
postgresql:
image:
repository: public.ecr.aws/docker/library/postgres
tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d
tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39
env:
POSTGRES_DB: memos
POSTGRES_USER: memos
Expand Down Expand Up @@ -71,37 +71,19 @@ spec:
readiness:
enabled: true
initContainers:
# Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently
bitnami-migrate:
# Init Container for Major PostgreSQL Upgrades, not needed permanently
pgautoupgrade:
image:
repository: alpine
tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
command:
- /bin/sh
- -c
- |
chown -R 999:999 $PGDATA
[ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA
[ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA
env:
PGDATA: /var/lib/postgresql/data
repository: pgautoupgrade/pgautoupgrade
tag: 18-debian
securityContext:
runAsUser: 0
runAsGroup: 0

# # # Init Container for Major PostgreSQL Upgrades, not needed permanently
# # pgautoupgrade:
# # image:
# # repository: pgautoupgrade/pgautoupgrade
# # tag: 17-bookworm
# # # securityContext:
# # # runAsUser: 0
# # # runAsGroup: 0
# # env:
# # PGAUTO_ONESHOT: yes
# # POSTGRES_USER: memos
# # POSTGRES_DB: memos
# # PGDATA: /var/lib/postgresql/data
env:
PGAUTO_ONESHOT: "yes"
POSTGRES_USER: memos
POSTGRES_DB: memos
PGDATA: /var/lib/postgresql/data
service:
primary:
controller: primary
Expand Down
48 changes: 15 additions & 33 deletions apps/paperless-ngx/hr-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
postgresql:
image:
repository: public.ecr.aws/docker/library/postgres
tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d
tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39
env:
POSTGRES_DB: paperless-ngx
POSTGRES_USER: paperless-ngx
Expand Down Expand Up @@ -70,38 +70,20 @@ spec:
enabled: true
readiness:
enabled: true
# initContainers:
# # # Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently
# # bitnami-migrate:
# # image:
# # repository: alpine
# # tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
# # command:
# # - /bin/sh
# # - -c
# # - |
# # chown -R 999:999 $PGDATA
# # [ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA
# # [ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA
# # env:
# # PGDATA: /var/lib/postgresql/data
# # securityContext:
# # runAsUser: 0
# # runAsGroup: 0

# # # Init Container for Major PostgreSQL Upgrades, not needed permanently
# # pgautoupgrade:
# # image:
# # repository: pgautoupgrade/pgautoupgrade
# # tag: 17-bookworm
# # # securityContext:
# # # runAsUser: 0
# # # runAsGroup: 0
# # env:
# # PGAUTO_ONESHOT: yes
# # POSTGRES_USER: paperless-ngx
# # POSTGRES_DB: paperless-ngx
# # PGDATA: /var/lib/postgresql/data
initContainers:
# Init Container for Major PostgreSQL Upgrades, not needed permanently
pgautoupgrade:
image:
repository: pgautoupgrade/pgautoupgrade
tag: 18-debian
securityContext:
runAsUser: 0
runAsGroup: 0
env:
PGAUTO_ONESHOT: "yes"
POSTGRES_USER: paperless-ngx
POSTGRES_DB: paperless-ngx
PGDATA: /var/lib/postgresql/data
service:
primary:
controller: primary
Expand Down
48 changes: 15 additions & 33 deletions apps/tandoor-recipes/hr-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
postgresql:
image:
repository: public.ecr.aws/docker/library/postgres
tag: 17.6@sha256:cecd364cc7ec03ab6148ab650efc5200548a89fd2e4f47a8ba6e6cf08c18805d
tag: 18.0@sha256:1d288494853e244e7a78d87b3526e650e5221c622f9768ecac9313d0874a9c39
env:
POSTGRES_DB: tandoor-recipes
POSTGRES_USER: tandoor-recipes
Expand Down Expand Up @@ -70,38 +70,20 @@ spec:
enabled: true
readiness:
enabled: true
# initContainers:
# # # Init Container to migrate from bitnami to official postgres container, adds missing config files, not needed permanently
# # bitnami-migrate:
# # image:
# # repository: alpine
# # tag: 3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1
# # command:
# # - /bin/sh
# # - -c
# # - |
# # chown -R 999:999 $PGDATA
# # [ -f "$PGDATA/postgresql.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/postgresql.conf -P $PGDATA
# # [ -f "$PGDATA/pg_hba.conf" ] || wget https://gist.githubusercontent.com/Pumba98/62fd44ab30d0f2725779bfd3443e155d/raw/277d4b15da500c14edb06fd49674b37375ca6604/pg_hba.conf -P $PGDATA
# # env:
# # PGDATA: /var/lib/postgresql/data
# # securityContext:
# # runAsUser: 0
# # runAsGroup: 0

# # # Init Container for Major PostgreSQL Upgrades, not needed permanently
# # pgautoupgrade:
# # image:
# # repository: pgautoupgrade/pgautoupgrade
# # tag: 17-bookworm
# # # securityContext:
# # # runAsUser: 0
# # # runAsGroup: 0
# # env:
# # PGAUTO_ONESHOT: yes
# # POSTGRES_USER: tandoor-recipes
# # POSTGRES_DB: tandoor-recipes
# # PGDATA: /var/lib/postgresql/data
initContainers:
# Init Container for Major PostgreSQL Upgrades, not needed permanently
pgautoupgrade:
image:
repository: pgautoupgrade/pgautoupgrade
tag: 18-debian
securityContext:
runAsUser: 0
runAsGroup: 0
env:
PGAUTO_ONESHOT: "yes"
POSTGRES_USER: tandoor-recipes
POSTGRES_DB: tandoor-recipes
PGDATA: /var/lib/postgresql/data
service:
primary:
controller: primary
Expand Down