Jon's Programming Blog

Docker

Docker Compose

To run Docker Compose do this:

docker-compose up --build

The parameter --build is optional. It will build the images if they don’t exist. If you don’t use it, it will use the images that are already built. Normally you will need to include it as you want everything rebuilt.

Add the parameter --progress=plain to see the progress of the build without it being hidden by the Docker Compose output.

Node JS

Determine All Dependencies

To determine all dependencies in a Node.js project do this:

npm list --all > dependencies.txt

You can change the depth to see more or less of the dependencies. For example:

npm list --depth=<Number>

Determine Vulnerabilities

To determine vulnerabilities in a Node.js project with package names do this:

npm audit

9