Docker Compose
Contents
Docker-Compose
Networking
By default Docker-Compose will create a new network for the given compose file. You can change the behavior by defining custom networks in your compose file.
Create and assign custom network
Example:
|
|
Use existing networks
If you want to use an existing Docker network for your compose files, you can add the external: true
parameter in your compose file
Example:
|
|