DEV Community

Discussion on: Deploying Your Laravel App on Docker, With NGINX and MySQL

 
baliachbryan profile image
Brian Baliach

Hello there, for starters, we have different configurations for our production and development environment. As such, we only want to persist the necessary files for production in our production environment. Because of this, we'd rather not create a volume that persists our entire project folder, but rather we want the volume to persist only our necessary files. That's why we have used commands like COPY so that we only copy necessary files that we have no problem discarding when re-creating our docker container and we've only persisted necessary data like the Storage folder which store user data.

Thread Thread
 
deulizealand profile image
DeUliZeaLand

Thanks for your explanation Brian. It's very great tutorial. Hope you make some other tutorial again docker