There is the configuration sample to setup an Elastic Beanstalk env with custom container settings for Nginx and PHP-FPM