add db for nextcloud

This commit is contained in:
2025-05-01 12:26:27 +05:30
parent 2f7c325b81
commit ccf0ed0c1f
3 changed files with 74 additions and 0 deletions

View File

@@ -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