adjust limiting the php-fpm port to specific containers again

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L
2023-09-29 19:15:51 +02:00
parent b0c859a080
commit f82affdac6
7 changed files with 28 additions and 5 deletions
@@ -1,4 +1,4 @@
#!/bin/bash
nc -z "$NEXTCLOUD_HOST" 9000 || exit 0
nc -z "$NEXTCLOUD_HOST" 9001 || exit 0
nc -z localhost 2375 || exit 1
+1 -1
View File
@@ -1,7 +1,7 @@
#!/bin/sh
# Only start container if nextcloud is accessible
while ! nc -z "$NEXTCLOUD_HOST" 9000; do
while ! nc -z "$NEXTCLOUD_HOST" 9001; do
echo "Waiting for Nextcloud to start..."
sleep 5
done