This commit is contained in:
Jerome Petazzoni
2015-06-08 11:11:59 -07:00
parent 38fc41e991
commit 60773bf68f

View File

@@ -34,6 +34,8 @@ for service_name, service in stack.items():
del service["links"]
if "ports" in service:
del service["ports"]
if service_name in ports:
service["ports"] = [ ports[service_name] ]
yaml.safe_dump(stack, open(output_file, "w"))