fix init container order

This commit is contained in:
red 2025-03-11 14:03:12 -04:00
parent 17ef031e43
commit 33fb3b718e

View file

@ -49,9 +49,6 @@ spec:
- name: pleroma-static-files
image: cr.forge.lan/darkdork-dev/pleroma
command: [ "sh", "-c", "mkdir -p ${DATA}/uploads && mkdir -p ${DATA}/static && cp -rf /static-files/* ${DATA}/static" ]
- name: pleroma-migrate
image: cr.forge.lan/darkdork-dev/pleroma
command: [ "sh", "-c", "$HOME/bin/pleroma_ctl migrate" ]
- name: pleroma-database-wait
image: cr.forge.lan/darkdork-dev/pleroma
command: [ "sh", "-c", "while ! pg_isready -U ${DB_USER} -d postgres://${DB_HOST}:${DB_PORT}/${DB_NAME} -t 1; do sleep 1s; done;" ]
@ -62,6 +59,9 @@ spec:
value: pleroma
- name: DB_USER
value: pleroma
- name: pleroma-migrate
image: cr.forge.lan/darkdork-dev/pleroma
command: [ "sh", "-c", "exec", "${HOME}/bin/pleroma_ctl migrate" ]
containers:
- name: pleroma
image: cr.forge.lan/darkdork-dev/pleroma