如何在从另一个容器更新卷时通知docker容器?

我有docker容器与Nginx和数据容器只有静态(JS,CSS)文件。 在应用程序启动时,Nginx使用volume_from从数据容器装入卷。 当我想更新我的静态文件,因为Nginx容器无法看到该卷已经改变,所以出现的问题。 是否有可能获取静态卷更改而不重新启动Nginx容器?

proxy: image: proxy volumes_from: - static:ro ports: - "80:80" restart: always sequential_deployment: true static: image: static volumes: - /home/node/static/build read_only: true command: "true" 

我知道从VirtualBox这个问题..你可以尝试添加到你的nginx.conf:

 sendfile off; 

Nginx文档