mirror of
https://github.com/Red5d/docker-autocompose
synced 2026-01-03 07:08:01 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user