Inspecting the Stack File: Services
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.
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 we’ve annotated the file below. Take a minute to read through the file and annotations.
Get hands-on with 1400+ tech skills courses.