mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
Allow combination of bind mounts and 'rebuild' watches
Signed-off-by: Remco Kranenburg <remco.kranenburg@crunchr.com>
This commit is contained in:
parent
d658fecc63
commit
e6ef8629a8
@ -155,7 +155,7 @@ func (s *composeService) watch(ctx context.Context, syncChannel chan bool, proje
|
|||||||
|
|
||||||
var paths, pathLogs []string
|
var paths, pathLogs []string
|
||||||
for _, trigger := range config.Watch {
|
for _, trigger := range config.Watch {
|
||||||
if checkIfPathAlreadyBindMounted(trigger.Path, service.Volumes) {
|
if trigger.Action != types.WatchActionRebuild && checkIfPathAlreadyBindMounted(trigger.Path, service.Volumes) {
|
||||||
logrus.Warnf("path '%s' also declared by a bind mount volume, this path won't be monitored!\n", trigger.Path)
|
logrus.Warnf("path '%s' also declared by a bind mount volume, this path won't be monitored!\n", trigger.Path)
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user