Laravel
The canonical framework-mode application.
ENTRY_FILE=index.php selects framework mode: public/ becomes the document root, so .env, app/ and vendor/ are never reachable over HTTP.
Container environment overrides .env — Laravel's dotenv loader never overrides real environment variables, so DB_HOST and APP_ENV set in Compose win.
The dev image revalidates OPcache on every request; edits on the bind-mounted src/ apply instantly.