Building a Lab for the Sample App
Let's walk through the process of building a lab to deploy our sample app.
We'll cover the following
There are a few prerequisites that need taking care of before deploying the app:
- Swarm mode: We’ll deploy the app as a Docker Stack, and stacks require Swarm mode.
- Labels: One of the Swarm worker nodes needs a custom node label.
- Secrets: The app uses secrets that need pre-creating before it can be deployed.
Sample app
We’ll build a three-node Linux-based Swarm cluster that satisfies all of the application’s prereqs. Once we’re done, the lab will look like this.
Get hands-on with 1400+ tech skills courses.