mirror of
https://github.com/docker/compose.git
synced 2025-07-20 20:24:30 +02:00
Order properties alphabetically
Improves readability. Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
This commit is contained in:
parent
6c7c598546
commit
98c7a7da61
@ -14,28 +14,15 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"ports": {
|
|
||||||
"oneOf": [
|
|
||||||
{"type": "string", "format": "ports"},
|
|
||||||
{
|
|
||||||
"type": "array",
|
|
||||||
"items": {"type": "string"},
|
|
||||||
"uniqueItems": true,
|
|
||||||
"format": "ports"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"build": {"type": "string"},
|
"build": {"type": "string"},
|
||||||
"env_file": {"$ref": "#/definitions/string_or_list"},
|
"env_file": {"$ref": "#/definitions/string_or_list"},
|
||||||
|
|
||||||
"environment": {
|
"environment": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{"type": "object"},
|
{"type": "object"},
|
||||||
{"type": "array", "items": {"type": "string"}, "uniqueItems": true}
|
{"type": "array", "items": {"type": "string"}, "uniqueItems": true}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"image": {"type": "string"},
|
|
||||||
"mem_limit": {"type": "number"},
|
|
||||||
"memswap_limit": {"type": "number"},
|
|
||||||
|
|
||||||
"extends": {
|
"extends": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@ -46,6 +33,22 @@
|
|||||||
},
|
},
|
||||||
"required": ["service"],
|
"required": ["service"],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
|
||||||
|
"image": {"type": "string"},
|
||||||
|
"mem_limit": {"type": "number"},
|
||||||
|
"memswap_limit": {"type": "number"},
|
||||||
|
|
||||||
|
"ports": {
|
||||||
|
"oneOf": [
|
||||||
|
{"type": "string", "format": "ports"},
|
||||||
|
{
|
||||||
|
"type": "array",
|
||||||
|
"items": {"type": "string"},
|
||||||
|
"uniqueItems": true,
|
||||||
|
"format": "ports"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user