Skip to content

Conversation

@n-someya
Copy link

I observed a race condition during container scale-out: Nginx began forwarding traffic before php-fpm was ready to handle connections, resulting in intermittent 502 Bad Gateway errors.

Changes:

  • root/etc/s6/nginx/run
    to include a wait loop. It now uses nc (netcat) to wait until php-fpm is listening on port 9000 before starting Nginx.
    Dependencies: Added netcat-openbsd to the Dockerfile to support the new readiness check.
  • Renamed root/etc/php81 directories to root/etc/php84 to align with the installed PHP version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant