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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners