739 B
739 B
LEMP Stack Improvements
PHP-FPM Pools
- Copy custom pools from host to
/etc/php/8.2/fpm/pool.d/
- Ensure host-mounted pools override defaults
- Add validation to check pool syntax on startup
System Configuration
- Optimize package installation:
- Skip
apt-get update
when installing downloaded packages - Delete existing
.conf
files before PHP install to preventdpkg
prompts
- Skip
- Configure system locales (e.g.,
en_US.UTF-8
)
Technical Debt
- Code refactor:
- Set correct ownership and permissions for all mount points. Such as www-data, mysql.
- Modularize Dockerfiles (base vs. production)
- Implement health checks for services
- Clean up obsolete scripts