mirror of https://github.com/docker/compose.git
Reword port warning in YAML reference, remove it from README
This commit is contained in:
parent
e6016bd5b4
commit
f79e0e588e
|
@ -28,8 +28,6 @@ db:
|
||||||
image: orchardup/postgresql
|
image: orchardup/postgresql
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note** When mapping ports in the format HOST:CONTAINER you may experience erroneous results when using a container port lower than 60. This is due to YAML parsing numbers in the format "xx:yy" as sexagesimal (base 60) for this reason it is recommended to define your port mappings as strings.
|
|
||||||
|
|
||||||
(No more installing Postgres on your laptop!)
|
(No more installing Postgres on your laptop!)
|
||||||
|
|
||||||
Then type `fig up`, and Fig will start and run your entire app:
|
Then type `fig up`, and Fig will start and run your entire app:
|
||||||
|
|
|
@ -28,7 +28,7 @@ links:
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
-- Expose ports. Either specify both ports (HOST:CONTAINER), or just the container port (a random host port will be chosen).
|
-- Expose ports. Either specify both ports (HOST:CONTAINER), or just the container port (a random host port will be chosen).
|
||||||
-- Note When mapping ports in the format HOST:CONTAINER you may experience erroneous results when using a container port lower than 60. This is due to YAML parsing numbers in the format "xx:yy" as sexagesimal (base 60) for this reason it is recommended to define your port mappings as strings.
|
-- Note: When mapping ports in the HOST:CONTAINER format, you may experience erroneous results when using a container port lower than 60, because YAML will parse numbers in the format "xx:yy" as sexagesimal (base 60). For this reason, we recommend always explicitly specifying your port mappings as strings.
|
||||||
ports:
|
ports:
|
||||||
- "3000"
|
- "3000"
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
|
|
Loading…
Reference in New Issue