mirror of https://github.com/docker/cli.git
Compare commits
2 Commits
5157c82d88
...
be0fce867d
Author | SHA1 | Date |
---|---|---|
Sebastiaan van Stijn | be0fce867d | |
Sebastiaan van Stijn | 46be579991 |
|
@ -1,6 +1,12 @@
|
|||
version: "3.13"
|
||||
|
||||
services:
|
||||
bar:
|
||||
image: busybox:latest
|
||||
depends_on:
|
||||
foo:
|
||||
condition: service_started
|
||||
required: true
|
||||
foo:
|
||||
|
||||
build:
|
||||
|
|
|
@ -1,5 +1,11 @@
|
|||
version: "3.13"
|
||||
services:
|
||||
bar:
|
||||
image: busybox:latest
|
||||
depends_on:
|
||||
foo:
|
||||
condition: service_started
|
||||
required: true
|
||||
foo:
|
||||
build:
|
||||
context: ./dir
|
||||
|
|
|
@ -133,7 +133,33 @@
|
|||
},
|
||||
"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},
|
||||
"dns": {"$ref": "#/definitions/string_or_list"},
|
||||
"dns_search": {"$ref": "#/definitions/string_or_list"},
|
||||
|
|
Loading…
Reference in New Issue