I made this post as my personal notes that might be useful for me or anyone who read this. So, in this post I have a Laravel app with postgres as the database.

To make it easy, we will dockerize our Laravel app, database postgres, and web server NginX.

Within infra, we have app to store laravel & PHP Dockerfile, nginx for web server, and pgsql for database.

Basically this Dockerfile will install PHP dependencies we needed also the composer, and then will expose our PHP app in port 9000.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners