concept this file in category docker

appears as: this file
Bootstrapping Microservices with Docker, Kubernetes and Terraform

This is an excerpt from Manning's book Bootstrapping Microservices with Docker, Kubernetes and Terraform.

Using Express is also a good excuse for us to learn how to install an npm package to use in our microservice. Npm is the package manager for Node.js and it puts at our fingertips a whole world of packages: many libraries and frameworks such as Express, that we can use to quickly and easily do a whole range of jobs when coding that we’d otherwise have to write a lot more code to achieve (and probably cause a load of bugs in the process).

Figure 6.7 shows what we’ll be doing. Example-1 contains just two Terraform scripts: providers.tf and resource-group.tf. The script file resource-group.tf is the one that actually creates the resource group. The other file, providers.tf, contains configuration for Terraform providers.

Listing 9.1 - The Docker Compose file for booting FlixTube in development (abbreviated from chapter-9/example-1/docker-compose.yaml)
version: '3'
services:
 
  db: #A
    image: mongo:4.2.0
    container_name: db
    # ... code omitted for brevity ...
    
  rabbit: #B
    image: rabbitmq:3.8.1-management
    container_name: rabbit
    # ... code omitted ...
 
  db-fixture-rest-api: #C
    image: db-fixture-rest-api
    build:
      context: ./db-fixture-rest-api
      dockerfile: Dockerfile
    container_name: db-fixture-rest-api
    # ... code omitted ...
 
  video-streaming: #D
    image: video-streaming
    build:
      context: ./video-streaming
      dockerfile: Dockerfile-dev
    container_name: video-streaming
    # ... code omitted ...
 
  # ... other microservices omitted #E