fix init container order
This commit is contained in:
parent
17ef031e43
commit
33fb3b718e
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue