From e1c0e23ff2a39022fbecb610e3efcee06a4f1ce7 Mon Sep 17 00:00:00 2001 From: Red5d Date: Fri, 28 Jul 2023 23:58:04 -0400 Subject: [PATCH] Sort mountpoints --- autocompose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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