【发布时间】:2017-01-27 13:08:58
【问题描述】:
我只有带有 Nginx 的 docker 容器和带有静态(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"
【问题讨论】:
标签: docker deployment docker-compose docker-cloud data-containers