Check out example codes for "lando expose database port". It will help you in understanding the concepts better.

Code Example 1

name: my-lando-app
recipe: drupal8
config:
  webroot: web
services:
  database:
    portforward: 37001

Learn ReactJs, React Native from akashmittal.com