【发布时间】:2017-03-25 18:29:59
【问题描述】:
对于生产部署,我不想要共享卷。所以,我有一个覆盖文件,但这不会删除卷。
有没有办法删除覆盖文件中的共享卷?我想避免仅仅为了开发而重写,因为这看起来很笨重。
这是我的docker-compose.yml:
version: '2'
# other services defined here
services:
web:
build:
context: .
# other configuration
volumes:
- .:${APP_DIR}
还有我的docker-compose.prod.yml:
version: '2'
services:
web:
volumes: []
restart: always
【问题讨论】:
标签: docker docker-compose