How does the public folder sharing between nginx and php work?
Closed this issue · 1 comments
JoyceBabu commented
When deploying the final version to swarm, the /app directory is empty on both the nginx and php containers. Docker is creating a empty named volume app-data
and is mounting in on /app
, hiding the original files.
If I remove the volume mount from php
service, the files are available. But how do I share the public
directory from php
with nginx?
JoyceBabu commented
It is now working. Due to some reason, the volume was created with the contents of the /app
directory of nginx instead of PHP. Now it is working as expected.