Inspecting the Stack File: Services
Let's examine the services section of the stack file.
Services are where most of the action happens. Our application defines two, and we’ll look at each in turn.
The web-fe service
As you can see, the web-fe
service defines an image, an app, the desired number of replicas, rules for updating the app, a restart policy, which network to connect to, which ports to publish, and how to mount a volume. That’s a lot to take in, so I’ve annotated it in the book. Take a minute to read through the file and annotations.
Get hands-on with 1300+ tech skills courses.