I've a docker-compose with some dockerfiles. One of this dockerfiles has a shared volume with PHP project.
I'm trying to execute a command (RUN or CMD) fron docker file inside a shared volume/folder. But at time of dockerfile the shared volume seems not mounted and there aren't any files.
So the question is how i can execute a command on startup docker-container and be sure that all volumes are mounted?