File Not Found Node JS Docker on Mac and Ubuntu

The docker-compose.yml file specifies which directories are bind-mounted to a Docker container. For a NodeJS web application, these are the directories:

services:
  web:
    volumes:
      - '../../../app:/opt/node_app/app'
      - '../../../lib:/opt/node_app/lib'
      - '../../../views:/opt/node_app/views'
      - '../../../public:/opt/node_app/public'
      - '../../../extensions:/opt/node_app/extensions'
      - '../../../db:/opt/node_app/db'
      - '../../../certs:/opt/node_app/certs'

Files outside these paths are currently not expected to appear visible inside a Docker container.

If you’re experiencing a specific trouble, feel free to detail such issue. It’s also worth noting webpage asset files (e.g.: CSS) should go inside the public folder (e.g.: public/css)