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".
This commit is contained in:
Red5d
2022-08-20 14:39:29 -04:00
committed by GitHub
parent 1768a65fce
commit dfc73d0bbd

View File

@@ -47,7 +47,7 @@ def render(struct, args, networks, volumes):
if args.version == 1: if args.version == 1:
pyaml.p(OrderedDict(struct)) pyaml.p(OrderedDict(struct))
else: else:
ans = {'version': '"3"', 'services': struct} ans = {'version': '"3.6"', 'services': struct}
if networks is not None: if networks is not None:
ans['networks'] = networks ans['networks'] = networks