Skip to content

Commit accf4aa

Browse files
committed
add support for inline config
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent 7ef3e28 commit accf4aa

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

schema/compose-spec.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@
764764
"type": "object",
765765
"properties": {
766766
"name": {"type": "string"},
767+
"content": {"type": "string"},
768+
"environment": {"type": "string"},
767769
"file": {"type": "string"},
768770
"external": {
769771
"type": ["boolean", "object"],

types/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ type FileObjectConfig struct {
891891
Name string `yaml:"name,omitempty" json:"name,omitempty"`
892892
File string `yaml:"file,omitempty" json:"file,omitempty"`
893893
Environment string `yaml:"environment,omitempty" json:"environment,omitempty"`
894+
Content string `yaml:"content,omitempty" json:"content,omitempty"`
894895
External External `yaml:"external,omitempty" json:"external,omitempty"`
895896
Labels Labels `yaml:"labels,omitempty" json:"labels,omitempty"`
896897
Driver string `yaml:"driver,omitempty" json:"driver,omitempty"`

0 commit comments

Comments
 (0)