Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ RUN set -ex \
curl \
libwebp \
nginx \
netcat-openbsd \
pcre \
php84 \
php84-bcmath \
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions root/etc/s6/nginx/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/bin/sh

echo "Ready to start Nginx, waiting for php-fpm on 127.0.0.1:9000..."
# Wait for php-fpm to be ready
until nc -z 127.0.0.1 9000; do
echo "Wait for php-fpm..."
sleep 1
done
echo "php-fpm is up! Starting nginx."

exec nginx -c /etc/nginx/nginx.conf