Merge pull request #14851 from grappler/patch-1

Update code example for pre-existing network
This commit is contained in:
Dora Ribeiro 2022-05-30 16:00:05 +01:00 committed by GitHub
commit a836a2a127
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:
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.