Stack files are very similar to Compose files. The only requirement is that the version:
key specifies a value of “3.0” or higher. See the Docker docs for the latest information on Compose file versions and compatibility with your versions of Docker.
One of the first things Docker does when deploying an app from a stack file is to create any required networks listed under the networks
key. If the networks don’t already exist, Docker creates them.
Let’s see the networks defined in the stack file.
Networks
Get hands-on with 1400+ tech skills courses.