Browse Source

Merge pull request #29 from orchardup/fix-external-port-config

Fix external port config
Ben Firshman 11 năm trước cách đây
mục cha
commit
4c72598e68
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      fig/service.py

+ 2 - 0
fig/service.py

@@ -224,6 +224,8 @@ class Service(object):
                 port = str(port)
                 if ':' in port:
                     port = port.split(':')[-1]
+                if '/' not in port:
+                    port = "%s/tcp" % port
                 ports.append(port)
             container_options['ports'] = ports