@@ -85,63 +85,64 @@ type Log struct {
8585
8686// ServiceConfig holds version 2 of libcompose service configuration
8787type ServiceConfig struct {
88- Build yaml.Build `yaml:"build,omitempty"`
89- CapAdd []string `yaml:"cap_add,omitempty"`
90- CapDrop []string `yaml:"cap_drop,omitempty"`
91- CPUSet string `yaml:"cpuset,omitempty"`
92- CPUShares yaml.StringorInt `yaml:"cpu_shares,omitempty"`
93- CPUQuota yaml.StringorInt `yaml:"cpu_quota,omitempty"`
94- Command yaml.Command `yaml:"command,flow,omitempty"`
95- CgroupParent string `yaml:"cgroup_parent,omitempty"`
96- ContainerName string `yaml:"container_name,omitempty"`
97- Devices []string `yaml:"devices,omitempty"`
98- DependsOn []string `yaml:"depends_on,omitempty"`
99- DNS yaml.Stringorslice `yaml:"dns,omitempty"`
100- DNSOpts []string `yaml:"dns_opt,omitempty"`
101- DNSSearch yaml.Stringorslice `yaml:"dns_search,omitempty"`
102- DomainName string `yaml:"domainname,omitempty"`
103- Entrypoint yaml.Command `yaml:"entrypoint,flow,omitempty"`
104- EnvFile yaml.Stringorslice `yaml:"env_file,omitempty"`
105- Environment yaml.MaporEqualSlice `yaml:"environment,omitempty"`
106- Expose []string `yaml:"expose,omitempty"`
107- Extends yaml.MaporEqualSlice `yaml:"extends,omitempty"`
108- ExternalLinks []string `yaml:"external_links,omitempty"`
109- ExtraHosts []string `yaml:"extra_hosts,omitempty"`
110- GroupAdd []string `yaml:"group_add,omitempty"`
111- Image string `yaml:"image,omitempty"`
112- Isolation string `yaml:"isolation,omitempty"`
113- Hostname string `yaml:"hostname,omitempty"`
114- Ipc string `yaml:"ipc,omitempty"`
115- Labels yaml.SliceorMap `yaml:"labels,omitempty"`
116- Links yaml.MaporColonSlice `yaml:"links,omitempty"`
117- Logging Log `yaml:"logging,omitempty"`
118- MacAddress string `yaml:"mac_address,omitempty"`
119- MemLimit yaml.MemStringorInt `yaml:"mem_limit,omitempty"`
120- MemReservation yaml.MemStringorInt `yaml:"mem_reservation,omitempty"`
121- MemSwapLimit yaml.MemStringorInt `yaml:"memswap_limit,omitempty"`
122- MemSwappiness yaml.MemStringorInt `yaml:"mem_swappiness,omitempty"`
123- NetworkMode string `yaml:"network_mode,omitempty"`
124- Networks * yaml.Networks `yaml:"networks,omitempty"`
125- OomKillDisable bool `yaml:"oom_kill_disable,omitempty"`
126- OomScoreAdj yaml.StringorInt `yaml:"oom_score_adj,omitempty"`
127- Pid string `yaml:"pid,omitempty"`
128- Ports []string `yaml:"ports,omitempty"`
129- Privileged bool `yaml:"privileged,omitempty"`
130- SecurityOpt []string `yaml:"security_opt,omitempty"`
131- ShmSize yaml.MemStringorInt `yaml:"shm_size,omitempty"`
132- StopSignal string `yaml:"stop_signal,omitempty"`
133- Tmpfs yaml.Stringorslice `yaml:"tmpfs,omitempty"`
134- VolumeDriver string `yaml:"volume_driver,omitempty"`
135- Volumes * yaml.Volumes `yaml:"volumes,omitempty"`
136- VolumesFrom []string `yaml:"volumes_from,omitempty"`
137- Uts string `yaml:"uts,omitempty"`
138- Restart string `yaml:"restart,omitempty"`
139- ReadOnly bool `yaml:"read_only,omitempty"`
140- StdinOpen bool `yaml:"stdin_open,omitempty"`
141- Tty bool `yaml:"tty,omitempty"`
142- User string `yaml:"user,omitempty"`
143- WorkingDir string `yaml:"working_dir,omitempty"`
144- Ulimits yaml.Ulimits `yaml:"ulimits,omitempty"`
88+ Build yaml.Build `yaml:"build,omitempty"`
89+ CapAdd []string `yaml:"cap_add,omitempty"`
90+ CapDrop []string `yaml:"cap_drop,omitempty"`
91+ CPUSet string `yaml:"cpuset,omitempty"`
92+ CPUShares yaml.StringorInt `yaml:"cpu_shares,omitempty"`
93+ CPUQuota yaml.StringorInt `yaml:"cpu_quota,omitempty"`
94+ Command yaml.Command `yaml:"command,flow,omitempty"`
95+ CgroupParent string `yaml:"cgroup_parent,omitempty"`
96+ ContainerName string `yaml:"container_name,omitempty"`
97+ Devices []string `yaml:"devices,omitempty"`
98+ DependsOn []string `yaml:"depends_on,omitempty"`
99+ DNS yaml.Stringorslice `yaml:"dns,omitempty"`
100+ DNSOpts []string `yaml:"dns_opt,omitempty"`
101+ DNSSearch yaml.Stringorslice `yaml:"dns_search,omitempty"`
102+ DomainName string `yaml:"domainname,omitempty"`
103+ Entrypoint yaml.Command `yaml:"entrypoint,flow,omitempty"`
104+ EnvFile yaml.Stringorslice `yaml:"env_file,omitempty"`
105+ Environment yaml.MaporEqualSlice `yaml:"environment,omitempty"`
106+ Expose []string `yaml:"expose,omitempty"`
107+ Extends yaml.MaporEqualSlice `yaml:"extends,omitempty"`
108+ ExternalLinks []string `yaml:"external_links,omitempty"`
109+ ExtraHosts []string `yaml:"extra_hosts,omitempty"`
110+ GroupAdd []string `yaml:"group_add,omitempty"`
111+ Image string `yaml:"image,omitempty"`
112+ Isolation string `yaml:"isolation,omitempty"`
113+ Hostname string `yaml:"hostname,omitempty"`
114+ Ipc string `yaml:"ipc,omitempty"`
115+ Labels yaml.SliceorMap `yaml:"labels,omitempty"`
116+ Links yaml.MaporColonSlice `yaml:"links,omitempty"`
117+ Logging Log `yaml:"logging,omitempty"`
118+ MacAddress string `yaml:"mac_address,omitempty"`
119+ MemLimit yaml.MemStringorInt `yaml:"mem_limit,omitempty"`
120+ MemReservation yaml.MemStringorInt `yaml:"mem_reservation,omitempty"`
121+ MemSwapLimit yaml.MemStringorInt `yaml:"memswap_limit,omitempty"`
122+ MemSwappiness yaml.MemStringorInt `yaml:"mem_swappiness,omitempty"`
123+ NetworkMode string `yaml:"network_mode,omitempty"`
124+ Networks * yaml.Networks `yaml:"networks,omitempty"`
125+ OomKillDisable bool `yaml:"oom_kill_disable,omitempty"`
126+ OomScoreAdj yaml.StringorInt `yaml:"oom_score_adj,omitempty"`
127+ Pid string `yaml:"pid,omitempty"`
128+ Ports []string `yaml:"ports,omitempty"`
129+ Privileged bool `yaml:"privileged,omitempty"`
130+ SecurityOpt []string `yaml:"security_opt,omitempty"`
131+ ShmSize yaml.MemStringorInt `yaml:"shm_size,omitempty"`
132+ StopGracePeriod string `yaml:"stop_grace_period,omitempty"`
133+ StopSignal string `yaml:"stop_signal,omitempty"`
134+ Tmpfs yaml.Stringorslice `yaml:"tmpfs,omitempty"`
135+ VolumeDriver string `yaml:"volume_driver,omitempty"`
136+ Volumes * yaml.Volumes `yaml:"volumes,omitempty"`
137+ VolumesFrom []string `yaml:"volumes_from,omitempty"`
138+ Uts string `yaml:"uts,omitempty"`
139+ Restart string `yaml:"restart,omitempty"`
140+ ReadOnly bool `yaml:"read_only,omitempty"`
141+ StdinOpen bool `yaml:"stdin_open,omitempty"`
142+ Tty bool `yaml:"tty,omitempty"`
143+ User string `yaml:"user,omitempty"`
144+ WorkingDir string `yaml:"working_dir,omitempty"`
145+ Ulimits yaml.Ulimits `yaml:"ulimits,omitempty"`
145146}
146147
147148// VolumeConfig holds v2 volume configuration
0 commit comments