diff --git a/schema/compose-spec.json b/schema/compose-spec.json index 2ce8da4a..8891fc42 100644 --- a/schema/compose-spec.json +++ b/schema/compose-spec.json @@ -770,7 +770,7 @@ "type": "object", "patternProperties": { ".+": { - "type": ["string", "number", "null"] + "type": ["string", "number", "boolean", "null"] } }, "additionalProperties": false diff --git a/spec.md b/spec.md index 5f1d0e12..4932e287 100644 --- a/spec.md +++ b/spec.md @@ -754,7 +754,7 @@ VAR="quoted" ### environment `environment` defines environment variables set in the container. `environment` can use either an array or a -map. Any boolean values; true, false, yes, no, MUST be enclosed in quotes to ensure +map. Any boolean values; true, false, yes, no, SHOULD be enclosed in quotes to ensure they are not converted to True or False by the YAML parser. Environment variables MAY be declared by a single key (no value to equals sign). In such a case Compose