We have the back half of our system set up in Docker containers, as well as the private bridge network to connect the backend containers. It's now time to do the same for the front half of the system: the Notes application (svc-notes) and its associated database (db-notes). Fortunately, the tasks required to build FrontNet are more or less the same as what we did for AuthNet.
The first task is to set up another private bridge network, frontnet. Like authnet, this will be the infrastructure for the front half of the Notes application stack.
Create a directory, frontnet, and in that directory, create a package.json file that will contain the scripts to manage frontnet:
{
"name": "frontnet",
"version": "1.0.0",
"description": "Scripts to define and manage FrontNet",
"scripts": {
"build-frontnet": "docker network create --driver bridge frontnet",
}...