From 4f3bfc3715111ed88b2d7ce2d05da199df80c25d Mon Sep 17 00:00:00 2001 From: Ulrich Pogson Date: Mon, 30 May 2022 09:58:02 +0200 Subject: [PATCH] Update code example for pre-existing network --- compose/networking.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose/networking.md b/compose/networking.md index 0e646515e1a..280c3fa853e 100644 --- a/compose/networking.md +++ b/compose/networking.md @@ -185,8 +185,8 @@ services: # ... networks: default: - external: - name: my-pre-existing-network + name: my-pre-existing-network + external: true ``` Instead of attempting to create a network called `[projectname]_default`, Compose looks for a network called `my-pre-existing-network` and connect your app's containers to it.