Docker Compose Wordpress Image wp-content directory looks like got merge instead of overwritten #910
Replies: 2 comments
-
| That would happen if the new folders are created at runtime in the container. That would be the expected behavior for volume mounting. | 
Beta Was this translation helpful? Give feedback.
-
| The merging you're seeing is that the container "installs" WordPress on initial startup if it is not already installed.  If you want to avoid that, I think you'll need to figure out how to mount to  A "quick" fix would be to mount an empty directory at  | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My project directory looks like the following let's say the directory called
myawesomeprojectand is located at~/src/myawesomeproject, and inside that is the followingand my
docker-compose.ymlMy question is when I run
docker compose up -dthe
wp-contentdirectory seems like getting merged I can see my host machine becomeWhy is that? I was hoping the both the container and my host machine have my original project directory instead
How can I fix this?
Beta Was this translation helpful? Give feedback.
All reactions