Skip to content

Commit dfc73d0

Browse files
authored
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".
1 parent 1768a65 commit dfc73d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autocompose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def render(struct, args, networks, volumes):
4747
if args.version == 1:
4848
pyaml.p(OrderedDict(struct))
4949
else:
50-
ans = {'version': '"3"', 'services': struct}
50+
ans = {'version': '"3.6"', 'services': struct}
5151

5252
if networks is not None:
5353
ans['networks'] = networks

0 commit comments

Comments
 (0)