add config file to init container
This commit is contained in:
parent
69e2a3eb0e
commit
3b3f862a9c
2 changed files with 9 additions and 1 deletions
|
|
@ -28,6 +28,14 @@ spec:
|
|||
- name: DB_USER
|
||||
value: pleroma
|
||||
- name: DB_PASS
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: postgres
|
||||
key: postgres-password
|
||||
volumeMounts:
|
||||
- name: pleroma-config-volume
|
||||
mountPath: /etc/pleroma/config.exs
|
||||
subPath: config.exs
|
||||
containers:
|
||||
- name: pleroma
|
||||
image: cr.forge.lan/darkdork-dev/pleroma:${CI_COMMIT_SHA}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
env
|
||||
|
||||
while ! pg_isready -U ${DB_USER} -d postgres://${DB_HOST}:${DB_PORT}/${DB_NAME} -t 1; do sleep 1s; done;
|
||||
|
||||
mkdir -p ${DATA}/uploads && mkdir -p ${DATA}/static && cp -rf /static-files/* ${DATA}/static && chown -R 1000:1000 ${DATA}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue