--- title: "Node.js APM with Docker" slug: "nodejs-apm-with-docker" description: "Easily install Retrace Linux Agent & Java APM on AWS Elastic Beanstalk (Tomcat). Just follow the step-by-step instructions provided." updated: 2020-02-27T22:18:10Z published: 2020-02-27T22:18:11Z canonical: "docs.stackify.com/nodejs-apm-with-docker" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.stackify.com/llms.txt > Use this file to discover all available pages before exploring further. # Node.js APM with Docker This document details how to install the **Node.js APM Profiler** in your **Node.js** application running on **Docker** or **Docker Swarm**. ## Prerequisite Follow the [Retrace Docker Install](https://docs.stackify.com/docs/retrace-docker-install) Guide. ## Node.js Docker Setup #### Add Stackify APM Module Add the Stackify APM module to each application to monitor. ``` npm install stackify-node-apm --save ``` #### Configure Application Copy `node_modules/stackify-node-apm/stackify.js` into your application's root directory and modify **Application Name** and **Environment Name**. #### Initialize Profiler Add `require('stackify-node-apm')` to the top of your application's main module. ## Running your Application Start your application with the `stackify` shared volume. ``` docker run -v stackify:/usr/local/stackify [your-application-image] ``` ## Verify Make application requests, you can then verify results in the Retrace dashboard.