DEV Community

Discussion on: Running Laravel on Docker is really easy with Kool

Collapse
 
omenejoseph profile image
omenejoseph

What are the possibilities of running micro services that are all individually laravel instances with individual databases on one container here on kool? Because it seems it just serves directly from local host. Thanks

Collapse
 
dbpolito profile image
Daniel Polito

Well, you have a few possibilities here:

  1. First option and most recommended is separate containers, we posted some days ago a way of working with Multiple applications with Kool: dev.to/kooldev/use-kool-to-run-mul...

  2. If you want everything on the same container, this will require some knowledge of docker, where you should install kool on the parent folder of all projects you want to work together and customize the kooldev/php:8.0-nginx image, you can see how it's built here: github.com/kool-dev/docker-php/tre...

Customize the vhost to serve the different apps on different folders or hosts.