roots / bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure
https://roots.io/bedrock/
MIT License
6.15k stars 1.16k forks source link

Seperate dynamic from static content for containerisation #723

Closed tamis-laan closed 3 months ago

tamis-laan commented 3 months ago

Summary

I'm trying to containerize bedrock such that developers can develop themes and plugins for a specific customer website. I would like to separate static content from dynamic content. In other words I would like to build a docker image that contains the static code for plugins and themes while dynamic assets such as /web/cache, /web/uploads and plugins installed inside using the wordpres interface /web/plugins web/mu-plugins to be separated such that they can be hosted using on a volume.

The problem arises from the fact that a custom plugins are contained in the same directory as dynamically installed plugins i.e. /web/plugins and that the dynamic content is placed in different folders. It would be better if dynamic content would be placed into a folder such as /web/app/dynamic.

Additional context

No response

Log1x commented 3 months ago

This would best be asked in a support request on Discourse.