From 933b8292013ef63dfe5cd1f0a192244cabe63055 Mon Sep 17 00:00:00 2001 From: Nobuhiko Otoba <44864310+nobutoba@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:56:02 +0900 Subject: [PATCH 1/2] Update 06-networks.md Fix section hierarchy --- content/compose/compose-file/06-networks.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/compose/compose-file/06-networks.md b/content/compose/compose-file/06-networks.md index 6f5bf750c1b1..413ce54509cd 100644 --- a/content/compose/compose-file/06-networks.md +++ b/content/compose/compose-file/06-networks.md @@ -105,7 +105,7 @@ networks: `enable_ipv6` enables IPv6 networking. For an example, see step four of [Create an IPv6 network](../../config/daemon/ipv6.md). -## external +### external If set to `true`: - `external` specifies that this network’s lifecycle is maintained outside of that of the application. @@ -218,4 +218,4 @@ networks: ## Additional resources -For more examples, see [Networking in Compose](../networking.md). \ No newline at end of file +For more examples, see [Networking in Compose](../networking.md). From 23e476652586f989f51f285e75c34a07af8bcc0d Mon Sep 17 00:00:00 2001 From: Nobuhiko Otoba <44864310+nobutoba@users.noreply.github.com> Date: Wed, 6 Mar 2024 20:36:19 +0900 Subject: [PATCH 2/2] Update 06-networks.md --- content/compose/compose-file/06-networks.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/compose/compose-file/06-networks.md b/content/compose/compose-file/06-networks.md index 413ce54509cd..df57fc52be70 100644 --- a/content/compose/compose-file/06-networks.md +++ b/content/compose/compose-file/06-networks.md @@ -164,12 +164,12 @@ networks: baz: "0" ``` -## internal +### internal By default, Compose provides external connectivity to networks. `internal`, when set to `true`, allows you to create an externally isolated network. -## labels +### labels Add metadata to containers using `labels`. You can use either an array or a dictionary. @@ -195,7 +195,7 @@ networks: Compose sets `com.docker.compose.project` and `com.docker.compose.network` labels. -## name +### name `name` sets a custom name for the network. The name field can be used to reference networks which contain special characters. The name is used as is and is not scoped with the project name.