You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/yml.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,7 @@ An entry with the ip address and hostname will be created in `/etc/hosts` inside
102
102
### ports
103
103
104
104
Expose ports. Either specify both ports (`HOST:CONTAINER`), or just the container
105
-
port (a random host port will be chosen).
105
+
port (a random host port will be chosen). You can specify a port range instead of a single port (`START-END`). If you use a range for the container ports, you may specify a range for the host ports as well. both ranges must be of equal size.
106
106
107
107
> **Note:** When mapping ports in the `HOST:CONTAINER` format, you may experience
108
108
> erroneous results when using a container port lower than 60, because YAML will
@@ -111,9 +111,12 @@ port (a random host port will be chosen).
111
111
112
112
ports:
113
113
- "3000"
114
+
- "3000-3005"
114
115
- "8000:8000"
116
+
- "9090-9091:8080-8081"
115
117
- "49100:22"
116
118
- "127.0.0.1:8001:8001"
119
+
- "127.0.0.1:5000-5010:5000-5010"
117
120
118
121
### expose
119
122
@@ -371,3 +374,4 @@ Each of these is a single value, analogous to its
0 commit comments