diff --git a/schema/compose-spec.json b/schema/compose-spec.json index d4bff384..463d6822 100644 --- a/schema/compose-spec.json +++ b/schema/compose-spec.json @@ -764,6 +764,8 @@ "type": "object", "properties": { "name": {"type": "string"}, + "content": {"type": "string"}, + "environment": {"type": "string"}, "file": {"type": "string"}, "external": { "type": ["boolean", "object"], diff --git a/types/types.go b/types/types.go index 0407462a..770748ba 100644 --- a/types/types.go +++ b/types/types.go @@ -891,6 +891,7 @@ type FileObjectConfig struct { Name string `yaml:"name,omitempty" json:"name,omitempty"` File string `yaml:"file,omitempty" json:"file,omitempty"` Environment string `yaml:"environment,omitempty" json:"environment,omitempty"` + Content string `yaml:"content,omitempty" json:"content,omitempty"` External External `yaml:"external,omitempty" json:"external,omitempty"` Labels Labels `yaml:"labels,omitempty" json:"labels,omitempty"` Driver string `yaml:"driver,omitempty" json:"driver,omitempty"`