Merge pull request #29 from orchardup/fix-external-port-config
Fix external port config
This commit is contained in:
commit
4c72598e68
1 changed files with 2 additions and 0 deletions
|
|
@ -224,6 +224,8 @@ class Service(object):
|
||||||
port = str(port)
|
port = str(port)
|
||||||
if ':' in port:
|
if ':' in port:
|
||||||
port = port.split(':')[-1]
|
port = port.split(':')[-1]
|
||||||
|
if '/' not in port:
|
||||||
|
port = "%s/tcp" % port
|
||||||
ports.append(port)
|
ports.append(port)
|
||||||
container_options['ports'] = ports
|
container_options['ports'] = ports
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue