diff --git a/autocompose.py b/autocompose.py index a25f8e3..61644d0 100644 --- a/autocompose.py +++ b/autocompose.py @@ -247,7 +247,7 @@ def generate(cname, createvolumes=False): } # to reuse an existing volume ... better to make that a choice? (cli argument) elif mount["Type"] == "bind": mountpoints.append(mount["Source"] + ":" + destination) - values["volumes"] = mountpoints + values["volumes"] = sorted(mountpoints) if len(volumes) == 0: volumes = None values["mounts"] = None # remove this temporary data from the returned data