mirror of https://github.com/docker/cli.git
Merge 46be579991
into f9497b8a46
This commit is contained in:
commit
070f1fb05c
|
@ -1,6 +1,12 @@
|
||||||
version: "3.13"
|
version: "3.13"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
bar:
|
||||||
|
image: busybox:latest
|
||||||
|
depends_on:
|
||||||
|
foo:
|
||||||
|
condition: service_started
|
||||||
|
required: true
|
||||||
foo:
|
foo:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
version: "3.13"
|
version: "3.13"
|
||||||
services:
|
services:
|
||||||
|
bar:
|
||||||
|
image: busybox:latest
|
||||||
|
depends_on:
|
||||||
|
foo:
|
||||||
|
condition: service_started
|
||||||
|
required: true
|
||||||
foo:
|
foo:
|
||||||
build:
|
build:
|
||||||
context: ./dir
|
context: ./dir
|
||||||
|
|
|
@ -133,7 +133,33 @@
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
},
|
},
|
||||||
"depends_on": {"$ref": "#/definitions/list_of_strings"},
|
"depends_on": {
|
||||||
|
"oneOf": [
|
||||||
|
{"$ref": "#/definitions/list_of_strings"},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"patternProperties": {
|
||||||
|
"^[a-zA-Z0-9._-]+$": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"restart": {"type": "boolean"},
|
||||||
|
"required": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true
|
||||||
|
},
|
||||||
|
"condition": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": ["service_started", "service_healthy", "service_completed_successfully"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["condition"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"devices": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
"devices": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
|
||||||
"dns": {"$ref": "#/definitions/string_or_list"},
|
"dns": {"$ref": "#/definitions/string_or_list"},
|
||||||
"dns_search": {"$ref": "#/definitions/string_or_list"},
|
"dns_search": {"$ref": "#/definitions/string_or_list"},
|
||||||
|
|
Loading…
Reference in New Issue