Inspecting the Stack File: Secrets and Networks

Let's examine the secrets and networks section of the stack file.

We'll cover the following

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 1200+ tech skills courses.