Hi,
I’m currently using Docker for small projects that are running apache, PHP and mariaDB.
Each project has their own docker-compose.yml.
In combination with traefik and dnsmasq I’m able to create custom domain names for each project.
Now I’m looking into running our own CMS in docker.
Folder structure:
-- cms-sites
-- _cms
-- index.php
-- cms-project-1
-- cms-project-2
-- cms-project-3
The issue that I’m running into is that each project is trying to require the index file for the CMS by navigating up some folders all the way to “_cms/index.php”.
This of course is impossible because each project is running its own server.
At first I thought I could solve this by simply create a server with cms-sites as root and create vhosts for each project. This is actually how it is working on the live server.
But from what I have read online this is not a good idea because the Docker container would become too big with all those projects. is this true?
Would I be able to solve my problem by adding another php-apache service inside my docker-compose.yml for a project where I also host the CMS?
Or could this be fixed by adding another volume to the current php-apacher service?
I’m currently running this locally in MAMP PRO but the issue there is that I want to use a specific php and mariaDB version so that is why I’m looking at docker as a solution.