For a project, I have to create 2 Drupal web container with the same directory but with different database. But the 2 Website are not meant to be a Drupal multisite (I know, it's strange)....
In the DDEV documentation, it explain to use docker compose. But I can't make it work.
When I try, I have 2 possible error and I don't know how to correct it :
- If i define a explicit http_expose, I have the error the port is already in use (even the 9999)
- If i define a different http_expose, I will get a docker error who specify that mailpip and phpstatus are FAILED....
Can somebody show me how to get 2 web container with DDEV?
Thank you and have a nice day
DDEV supports multiple databases just fine, see https://ddev.readthedocs.io/en/latest/users/usage/database-management/#extra-databases
You do not need to create extra services or containers.
All you have to do is figure out where your settings.php will live, or have your settings.php change behavior for each of your sites.
I would recommend that path to you to start.