CodeIgniter Forums
Docker for local web development - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: Docker for local web development (/showthread.php?tid=91522)



Docker for local web development - ROBthePRO - 08-25-2024

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


RE: Docker for local web development - FlavioSuar - 08-26-2024

Hi,

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


RE: Docker for local web development - davis.lasis - 08-26-2024

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


RE: Docker for local web development - brimstone0 - 10-02-2024

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


RE: Docker for local web development - Bosborne - 10-02-2024

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.


RE: Docker for local web development - nahaK - 12-30-2024

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