Browse Source

Add missing network.internal.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Daniel Nephin 8 years ago
parent
commit
408fd20be2

+ 4 - 3
cli/compose/convert/compose.go

@@ -58,9 +58,10 @@ func Networks(namespace Namespace, networks networkMap, servicesNetworks map[str
 		}
 
 		createOpts := types.NetworkCreate{
-			Labels:  AddStackLabel(namespace, network.Labels),
-			Driver:  network.Driver,
-			Options: network.DriverOpts,
+			Labels:   AddStackLabel(namespace, network.Labels),
+			Driver:   network.Driver,
+			Options:  network.DriverOpts,
+			Internal: network.Internal,
 		}
 
 		if network.Ipam.Driver != "" || len(network.Ipam.Config) > 0 {

+ 1 - 0
cli/compose/schema/data/config_schema_v3.0.json

@@ -308,6 +308,7 @@
           },
           "additionalProperties": false
         },
+        "internal": {"type": "boolean"},
         "labels": {"$ref": "#/definitions/list_or_dict"}
       },
       "additionalProperties": false

+ 1 - 0
cli/compose/types/types.go

@@ -204,6 +204,7 @@ type NetworkConfig struct {
 	DriverOpts map[string]string `mapstructure:"driver_opts"`
 	Ipam       IPAMConfig
 	External   External
+	Internal   bool
 	Labels     map[string]string `compose:"list_or_dict_equals"`
 }