Laravel 13 REST API on PHP 8.3-FPM, MySQL-backed and production-ready.
84
Production backend for the Mxmobilz mobile-phone e-commerce platform.
A pure JSON REST API built with Laravel 13 and PHP 8.3-FPM. The application is designed to run behind Nginx and connect to MySQL.
The backend follows a production-oriented container architecture:
Nginx ↓ PHP-FPM ↓ Laravel 13 API ↓ MySQL / RDS
Redis can be used for caching, queues and other application workloads.
The image uses a multi-stage Docker build:
Composer 2.8
↓
Install optimized PHP dependencies
↓
PHP 8.3-FPM Bookworm
↓
Copy Laravel application
↓
Run as non-root www-data
↓
PHP-FPM on port 9000
Development dependencies are excluded from the production image.
Composer is configured with:
--no-dev--no-interaction--optimize-autoloaderclassmap-authoritativeMain API resources include:
/api/products
/api/orders
/api/inquiries
/api/promos
/api/stats
Content type
Image
Digest
sha256:72e4f49cf…
Size
172 MB
Last updated
25 days ago
docker pull hamzasarfraz862/backend-app:1.0.0