【发布时间】:2017-06-11 00:45:40
【问题描述】:
我从 Docker 开始,我认为这很棒!现在我正在为这个组织寻找解决方案:
现在我有了这个结构:
Applications
| +--app1
| | +--node_modules
| | +--package.json
| | +--...
| +--app2
| | +--node_modules
| | +--package.json
| | +--...
| ....
| docker-compose.app1.yml
| docker-compose.app2.yml
| ....
| Dockerfile //my personalized image for all projects
但我想达到这个:
Applications
| +--app1
| | +--node_modules //empty in host
| | +--package.json
| | +--docker-compose.app1.yml //override compose
| | +--...
| +--app2
| | +--node_modules //empty in host
| | +--package.json
| | +--...
| ....
| +--node_modules //global node_modules folder (linked to projects)
| docker-compose.yml //principal compose
| Dockerfile //my personalized image for all projects
我也在考虑创建一个全局“服务器”并链接 VHosts 上的所有项目,但我将如何访问每个项目?
【问题讨论】:
-
你能再具体一点吗? “获取访问权限”是什么意思?
标签: nginx docker docker-compose dockerfile