Incorrect type - expected integer - but it works

What you observe is a limitation of the used code server extension. It ignores the .env file and validates the yaml file directly against the compose file schema as is.

Docker compose on the other hand interpolates the variables with values from the .env file before validating and deploying the resources.

1 Like