add db for nextcloud
This commit is contained in:
@@ -13,6 +13,17 @@ spec:
|
||||
labels:
|
||||
app: nextcloud
|
||||
spec:
|
||||
initContainers:
|
||||
- name: wait-for-db
|
||||
image: busybox
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
until nc -z -v -w30 nextcloud-db-service 3306; do
|
||||
echo "Waiting for database to be ready..."
|
||||
sleep 2
|
||||
done
|
||||
containers:
|
||||
- name: nextcloud
|
||||
image: lscr.io/linuxserver/nextcloud:31.0.4
|
||||
|
||||
Reference in New Issue
Block a user