# CakePHP 5 Docker

**URL:** <https://discourse.cakephp.org/t/cakephp-5-docker/11881>\
**Category:** Need Help\
**Tags:** help\
**Created:** [February 19, 2024, 6:16am UTC](https://discourse.cakephp.org/t/cakephp-5-docker/11881 "2024-02-19T06:16:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![borderliner](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/borderliner/32/2890_2.png) [@borderliner](https://discourse.cakephp.org/u/borderliner)\
**Post date:** [February 19, 2024, 6:16am UTC](https://discourse.cakephp.org/t/cakephp-5-docker/11881/1 "2024-02-19T06:16:13Z")

</div>

It’s 2024 and no pre-configured docker-compose? PHP development environment is notorious for being a little difficult to set up. I don’t wanna use that stupid XAMPP to develop my projects, and I don’t wanna pollute my system with all the PHP and MySQL packages. It baffles me to see that we’re on CakePHP 5.0 and have no docker support. Does anybody have a working solution? I’d appreciate it if you share your piece of code.

---

<div class="post-metadata">

**Author:** ![jimgwhit](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/jimgwhit/32/378_2.png) [@jimgwhit](https://discourse.cakephp.org/u/jimgwhit)\
**Post date:** [February 21, 2024, 4:37am UTC](https://discourse.cakephp.org/t/cakephp-5-docker/11881/2 "2024-02-21T04:37:51Z")

</div>

I can usually setup a custom wamp in about 7 minutes using the various zip packages:

Nginx, PHP, and MySql.

Even switch version of php via a clever bat file if needed. So your comment:

> PHP development environment is notorious for being a little difficult to set up.

For me is not valid, it’s ridiculously easy.

---

<div class="post-metadata">

**Author:** ![niqeel](https://avatars.discourse-cdn.com/v4/letter/n/f08c70/32.png) [@niqeel](https://discourse.cakephp.org/u/niqeel)\
**Post date:** [February 21, 2024, 11:16am UTC](https://discourse.cakephp.org/t/cakephp-5-docker/11881/3 "2024-02-21T11:16:48Z")

</div>

Hi, look here: for some nice dev env options. inc plugins and libs to support your dev.

> **[GitHub - FriendsOfCake/awesome-cakephp: A curated list of amazingly awesome...](https://github.com/FriendsOfCake/awesome-cakephp?tab=readme-ov-file#development-environment)**
>
> A curated list of amazingly awesome CakePHP plugins, resources and shiny things. - GitHub - FriendsOfCake/awesome-cakephp: A curated list of amazingly awesome CakePHP plugins, resources and shiny ...

---

<div class="post-metadata">

**Author:** ![OrigamiJason](https://avatars.discourse-cdn.com/v4/letter/o/50afbb/32.png) [@OrigamiJason](https://discourse.cakephp.org/u/OrigamiJason)\
**Post date:** [February 21, 2024, 9:25pm UTC](https://discourse.cakephp.org/t/cakephp-5-docker/11881/4 "2024-02-21T21:25:37Z")

</div>

So, @borderliner, we’re working on a system to achieve exactly what you’re asking for. It’s roughly based on this article in the bakery:

[CakeDC article](https://www.cakedc.com/rochamarcelo/2020/07/20/a-quick-cakephp-local-environment-with-docker)

Out project creates a dev docker container, with your local folders mounted to the container for development to continue. Otherwise, it’s a full LAMP stack setup, with appropriate preferences and such. Please read the Read Me file in the root directory. It tells you how to work with the interactive script to setup your project parameters.

This is a work in progress!! We still have not even figured out how to publish this as a project outside of my dev environment. Feedback on that end is very welcome.

Here’s the link to the GitHub project, good luck.  
[GitHub](https://github.com/curlyjason/cake5docker)

---

<div class="post-metadata">

**Author:** ![bgrinter](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/bgrinter/32/1381_2.png) [@bgrinter](https://discourse.cakephp.org/u/bgrinter)\
**Post date:** [February 24, 2024, 12:48am UTC](https://discourse.cakephp.org/t/cakephp-5-docker/11881/5 "2024-02-24T00:48:17Z")

</div>

any timeline on this? I see the original article was 2020

---

<div class="post-metadata">

**Author:** ![shaan007](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/shaan007/32/2765_2.png) [@shaan007](https://discourse.cakephp.org/u/shaan007)\
**Post date:** [February 25, 2024, 5:07pm UTC](https://discourse.cakephp.org/t/cakephp-5-docker/11881/6 "2024-02-25T17:07:18Z")

</div>

glad to know that you are working on it… please think and focus on WEBSOCKETS for cakephp 5 with pre-configuration just install and do some twinks and run websockets in cakephp… there is no packages for websockets which work with pusher or ably. like Laravel provide
