We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
restart
1 parent b16c6a1 commit 873a781Copy full SHA for 873a781
schema/compose-spec.json
@@ -181,6 +181,7 @@
181
"type": "object",
182
"additionalProperties": false,
183
"properties": {
184
+ "restart": {"type": "boolean"},
185
"condition": {
186
"type": "string",
187
"enum": ["service_started", "service_healthy", "service_completed_successfully"]
types/types.go
@@ -1007,6 +1007,7 @@ type DependsOnConfig map[string]ServiceDependency
1007
1008
type ServiceDependency struct {
1009
Condition string `yaml:",omitempty" json:"condition,omitempty"`
1010
+ Restart bool `yaml:",omitempty" json:"restart,omitempty"`
1011
Extensions map[string]interface{} `yaml:",inline" json:"-"`
1012
}
1013
0 commit comments