We are currently experiencing an misbehaving: we have three services: “shared”, “fpm” and “nginx”.
“Shared” exposes a volume containing configuration files, fpm contains the application sources and exposes them inside a volume “mounted” by nginx (because assets are provided statically, then nginx will have them locally).
I’m writing a deploy procedure, this includes the sequential redeployment of “fpm” and (later) “nginx”. What happens is that “nginx” almost always mounts the previous version of the “fpm” volume…
Why it happens? How can I avoid it?