Welcome Guest, Not a member yet? Register   Sign In
Docker for local web development
#1

Hi Folks!
When I searched for the PHP Framework Laravel, I came across the official documentation saying to use Laravel Sail for development.
After many hours of investigating over the internet, I found the most interesting and detailed tutorial series about Docker for local web development.
So I used it for my Codeigniter project.
Because I found it so awesome, I just wanted to share it with you.

osteel's blog - Docker for local web development
Reply
#2

Hi,

Thank you for share! I'll give it a try.
By now, I use Laragon for local web development wich is great!
Reply
#3

I use laragon as well for local dev.
Easy fast install bundle, all you need for dev
Reply
#4

Docker is still powerful for local development but my preference would be laragon.
Reply
#5

Over the past few months I switched my local development over to Docker because my new production environment, using OpenShift, uses Docker containers.

One other reason for using Docker containers for local development if you have multiple projects, is to permit projects to run on differing versions of PHP or operating system.

It would also permit development on a locals computer that runs a different OS than your production environment.

Based on my experiences, I would not recommend using Docker for local development on an M1 MacBook. Some PHP libraries, if they are run on Linux, assume an x86 CPU architecture & will not function properly. I hit this issue with the Microsoft Graph SDK for PHP. IT installs without error but will NOT function in a Linux Docker container running on a modern MacBook.
Reply
#6

I’ve used Docker for some local projects, and it’s great for managing different environments. But for quick setups, I also prefer Laragon—it’s lightweight and super easy to use. Both have their pros depending on the project
Reply




Theme © iAndrew 2016 - Forum software by © MyBB