Search⌘ K
AI Features

Sample Application Setup

Explore how to deploy and manage a multi-container application using Docker Compose. Understand the roles of services, networks, and volumes while working with a sample app to grasp build contexts and deployment processes.

The sample app

We’ll use the sample app shown in the figure below with two services, a network, and a volume.

A simple multi-service application
A simple multi-service application

The web-fe service runs a web server that increments a counter in the redis service every time it receives a request for the web page. Both services are connected to the counter-net network and use it to communicate. The web-fe service mounts the counter-vol volume.

This is all defined in the compose.yaml file in the multi-container folder of the ...