mirror of
https://github.com/docker/docs.git
synced 2026-10-28 07:15:09 +03:00
Update code example for pre-existing network
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user