You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(docker, php): modernize image architecture and harden PHP configurations
Refactored the Docker image architecture and PHP configuration to fix vulnerabilities,
improve performance, and align with production best practices.
- Removed Supervisor (CVE-2023-27482) and adopted Docker’s single-process model with
`docker-entrypoint.sh` managing Redis/PHP-FPM in background and Nginx in foreground.
- Added configurable `ALPINE_VERSION` in `.env` and build scripts for easier base image upgrades.
- Moved critical OPcache directives (INI_SYSTEM) from `www.conf` to `php.ini` to fix FPM initialization errors.
- Removed deprecated OPcache directives (`opcache.fast_shutdown`, `opcache.consistency_checks`).
- Enabled `opcache.save_comments` for framework compatibility (Symfony, Laravel).
- Fixed `session.save_path` to `tcp://redis:6379` for proper container communication.
- Adjusted `disable_functions` list to allow required functions like `curl_exec`.
- Updated Makefile: replaced `supervisorctl` with `nginx -s reload` and added `--env-file .env` to
`docker run` for proper environment injection.
BREAKING CHANGE: Supervisor was removed. Process management is now handled by `docker-entrypoint.sh`.
Commands using `supervisorctl` will no longer work. To reload Nginx use
`docker exec <container> nginx -s reload`.
0 commit comments