Port should be configured in docker-compose.yml as strings #550
Server Version - V0.16.3
Steps to reproduce the problem:
Create an environment.
The docker-compose.yml for this service has the ports specified as follows:
Following is the recommendation:
"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."
The text was updated successfully, but these errors were encountered:
Unfortunately, this problem is not trivial to solve. Unless the value has trailing or ending spaces, its not surrounded by quotes. If I change the formatter properties to set the scalarType to double or single quotes, it applies to all the entires in the compose file. In other words, you will see something like:
While docker-compose tool expects to see mix and match of the both:
image: ubuntu - no quotes
We can document it for now