Skip to content

Commit 873a781

Browse files
committed
introduce restart for depends_on
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent b16c6a1 commit 873a781

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

schema/compose-spec.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
"type": "object",
182182
"additionalProperties": false,
183183
"properties": {
184+
"restart": {"type": "boolean"},
184185
"condition": {
185186
"type": "string",
186187
"enum": ["service_started", "service_healthy", "service_completed_successfully"]

types/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,7 @@ type DependsOnConfig map[string]ServiceDependency
10071007

10081008
type ServiceDependency struct {
10091009
Condition string `yaml:",omitempty" json:"condition,omitempty"`
1010+
Restart bool `yaml:",omitempty" json:"restart,omitempty"`
10101011
Extensions map[string]interface{} `yaml:",inline" json:"-"`
10111012
}
10121013

0 commit comments

Comments
 (0)