|
@@ -14,7 +14,6 @@ var UnsupportedProperties = []string{
|
|
|
"dns_search",
|
|
|
"domainname",
|
|
|
"external_links",
|
|
|
- "extra_hosts",
|
|
|
"ipc",
|
|
|
"links",
|
|
|
"mac_address",
|
|
@@ -24,7 +23,6 @@ var UnsupportedProperties = []string{
|
|
|
"restart",
|
|
|
"security_opt",
|
|
|
"shm_size",
|
|
|
- "stdin_open",
|
|
|
"stop_signal",
|
|
|
"tmpfs",
|
|
|
}
|
|
@@ -84,6 +82,7 @@ type ServiceConfig struct {
|
|
|
ExternalLinks []string `mapstructure:"external_links"`
|
|
|
ExtraHosts map[string]string `mapstructure:"extra_hosts" compose:"list_or_dict_colon"`
|
|
|
Hostname string
|
|
|
+ HealthCheck *HealthCheckConfig
|
|
|
Image string
|
|
|
Ipc string
|
|
|
Labels map[string]string `compose:"list_or_dict_equals"`
|
|
@@ -124,6 +123,13 @@ type DeployConfig struct {
|
|
|
Placement Placement
|
|
|
}
|
|
|
|
|
|
+type HealthCheckConfig struct {
|
|
|
+ Command []string `compose:"shell_command"`
|
|
|
+ Timeout string
|
|
|
+ Interval string
|
|
|
+ Retries *uint64
|
|
|
+}
|
|
|
+
|
|
|
type UpdateConfig struct {
|
|
|
Parallelism uint64
|
|
|
Delay time.Duration
|