From dfc73d0bbdf9ef68969311e42332d23a251d0fae Mon Sep 17 00:00:00 2001 From: Red5d Date: Sat, 20 Aug 2022 14:39:29 -0400 Subject: [PATCH] Update compose version 3 to 3.6. With somewhat-recent docker features and spec changes that have been included in the compose file generation for this script, specifying compose file version 3.6 (at least) is necessary for the output compose file to pass validation using "docker-compose config". --- autocompose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autocompose.py b/autocompose.py index 1e2d2f3..bf7e8a9 100644 --- a/autocompose.py +++ b/autocompose.py @@ -47,7 +47,7 @@ def render(struct, args, networks, volumes): if args.version == 1: pyaml.p(OrderedDict(struct)) else: - ans = {'version': '"3"', 'services': struct} + ans = {'version': '"3.6"', 'services': struct} if networks is not None: ans['networks'] = networks