Merge pull request #13958 from andrewsurrey/patch-1

Update networking.md
This commit is contained in:
Usha Mandya 2022-02-24 14:26:23 +00:00 committed by GitHub
commit 3bf0233899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -185,8 +185,8 @@ services:
# ...
networks:
default:
external: true
name: my-pre-existing-network
external:
name: my-pre-existing-network
```
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.