From c4946bb98b05a3cf301868376642ccd8559d0f2e Mon Sep 17 00:00:00 2001 From: Mahitha Adapa Date: Thu, 16 Apr 2026 11:25:24 -0400 Subject: [PATCH] Add network_mode: bridge to Compose file reference Signed-off-by: Mahitha Adapa --- content/reference/compose-file/services.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/reference/compose-file/services.md b/content/reference/compose-file/services.md index 224d848fff1..1ccdef9bbba 100644 --- a/content/reference/compose-file/services.md +++ b/content/reference/compose-file/services.md @@ -1334,6 +1334,7 @@ If either is omitted, Compose automatically generates the environment variable n `network_mode` sets a service container's network mode. +- `bridge`: Connects the container to the host's default bridge network instead of creating a project-specific network. - `none`: Turns off all container networking. - `host`: Gives the container raw access to the host's network interface. - `service:{name}`: Gives the container access to the specified container by referring to its service name. @@ -1342,6 +1343,7 @@ If either is omitted, Compose automatically generates the environment variable n For more information container networks, see the [Docker Engine documentation](/manuals/engine/network/_index.md#container-networks). ```yml + network_mode: "bridge" network_mode: "host" network_mode: "none" network_mode: "service:[service name]"