这是我的docker-compose配置文件
{
"version": "2",
"services": {
"data1": {
"image": "myimage:v1",
"volumes": ["/agents"]
},
"data2": {
"image": "myimage:v2",
"volumes": ["/agents"]
},
"app": {
"image": "app:latest",
"volumes_from": ["data1", "data2"]
}
}
}
由于来自" data1"和" data2"服务是在路径" / agents",我的" app"容器将有其中之一。有没有办法为我安装的每个卷指定不同的路径?