mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-07-21 22:07:13 +00:00
wip
This commit is contained in:
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user