Share
Sign In

Get start with Docker Compose

On this page you build a Express web application running on Docker Compose. The application uses node.js, Express-generator and pm2.
While the sample uses JavaScript, the concepts demonstrated here should be understandable even if you’re not familiar with it.
Step 0: Install other application
Before to build web application on Docker Compose, we must install other package that is node.js, Express-generator and pm2
1.
node.js and npm package
2.
Express.js and Express-generator
Now install Express in the current directory and save it in the dependencies list. For example:
To install Express temporarily and not add it to the dependencies list:
Use the application generator tool, express-generator, to quickly create an application skeleton.
You can run the application generator with the npx command (available in Node.js 8.2.0).
For earlier Node versions, install the application generator as a global npm package and then launch it:
3.
PM2
PM2 is a daemon process manager that will help you manage and keep your application online 24/7
The latest PM2 version is installable with NPM or Yarn:
Managing processes
Step 1: Setup
Define the application dependencies.
1.
Create a directory for the project:
2.
Create a file called app.py in your project directory and paste this in:
3.
이전페이지로 돌아가기
Docker Compose
On this page you build a Express web application running on Docker Compose. The application uses node.js, Express-generator and pm2.
While the sample uses JavaScript, the concepts demonstrated here should be understandable even if you’re not familiar with it.
Step 0: Install other application
Before to build web application on Docker Compose, we must install other package that is node.js, Express-generator and pm2
1.
node.js and npm package
2.
Express.js and Express-generator
Now install Express in the current directory and save it in the dependencies list. For example:
To install Express temporarily and not add it to the dependencies list:
Use the application generator tool, express-generator, to quickly create an application skeleton.
You can run the application generator with the npx command (available in Node.js 8.2.0).
For earlier Node versions, install the application generator as a global npm package and then launch it:
3.
PM2
PM2 is a daemon process manager that will help you manage and keep your application online 24/7
The latest PM2 version is installable with NPM or Yarn:
Managing processes
Step 1: Setup
Define the application dependencies.
1.
Create a directory for the project:
2.
Create a file called app.py in your project directory and paste this in:
3.
이전페이지로 돌아가기
Docker Compose
On this page you build a Express web application running on Docker Compose. The application uses node.js, Express-generator and pm2.
While the sample uses JavaScript, the concepts demonstrated here should be understandable even if you’re not familiar with it.
Step 0: Install other application
Before to build web application on Docker Compose, we must install other package that is node.js, Express-generator and pm2
1.
node.js and npm package
2.
Express.js and Express-generator
Now install Express in the current directory and save it in the dependencies list. For example:
To install Express temporarily and not add it to the dependencies list:
Use the application generator tool, express-generator, to quickly create an application skeleton.
You can run the application generator with the npx command (available in Node.js 8.2.0).
For earlier Node versions, install the application generator as a global npm package and then launch it:
3.
PM2
PM2 is a daemon process manager that will help you manage and keep your application online 24/7
The latest PM2 version is installable with NPM or Yarn:
Managing processes
Step 1: Setup
Define the application dependencies.
1.
Create a directory for the project:
2.
Create a file called app.py in your project directory and paste this in:
3.
이전페이지로 돌아가기
Docker Compose
On this page you build a Express web application running on Docker Compose. The application uses node.js, Express-generator and pm2.
While the sample uses JavaScript, the concepts demonstrated here should be understandable even if you’re not familiar with it.
Step 0: Install other application
Before to build web application on Docker Compose, we must install other package that is node.js, Express-generator and pm2
1.
node.js and npm package
2.
Express.js and Express-generator
Now install Express in the current directory and save it in the dependencies list. For example:
To install Express temporarily and not add it to the dependencies list:
Use the application generator tool, express-generator, to quickly create an application skeleton.
You can run the application generator with the npx command (available in Node.js 8.2.0).
For earlier Node versions, install the application generator as a global npm package and then launch it:
3.
PM2
PM2 is a daemon process manager that will help you manage and keep your application online 24/7
The latest PM2 version is installable with NPM or Yarn:
Managing processes
Step 1: Setup
Define the application dependencies.
1.
Create a directory for the project:
2.
Create a file called app.py in your project directory and paste this in:
3.
이전페이지로 돌아가기
Docker Compose
On this page you build a Express web application running on Docker Compose. The application uses node.js, Express-generator and pm2.
While the sample uses JavaScript, the concepts demonstrated here should be understandable even if you’re not familiar with it.
Step 0: Install other application
Before to build web application on Docker Compose, we must install other package that is node.js, Express-generator and pm2
1.
node.js and npm package
2.
Express.js and Express-generator
Now install Express in the current directory and save it in the dependencies list. For example:
To install Express temporarily and not add it to the dependencies list:
Use the application generator tool, express-generator, to quickly create an application skeleton.
You can run the application generator with the npx command (available in Node.js 8.2.0).
For earlier Node versions, install the application generator as a global npm package and then launch it:
3.
PM2
PM2 is a daemon process manager that will help you manage and keep your application online 24/7
The latest PM2 version is installable with NPM or Yarn:
Managing processes
Step 1: Setup
Define the application dependencies.
1.
Create a directory for the project:
2.
Create a file called app.py in your project directory and paste this in:
3.
이전페이지로 돌아가기
Docker Compose
On this page you build a Express web application running on Docker Compose. The application uses node.js, Express-generator and pm2.
While the sample uses JavaScript, the concepts demonstrated here should be understandable even if you’re not familiar with it.
Step 0: Install other application
Before to build web application on Docker Compose, we must install other package that is node.js, Express-generator and pm2
1.
node.js and npm package
2.
Express.js and Express-generator
Now install Express in the current directory and save it in the dependencies list. For example:
To install Express temporarily and not add it to the dependencies list:
Use the application generator tool, express-generator, to quickly create an application skeleton.
You can run the application generator with the npx command (available in Node.js 8.2.0).
For earlier Node versions, install the application generator as a global npm package and then launch it:
3.
PM2
PM2 is a daemon process manager that will help you manage and keep your application online 24/7
The latest PM2 version is installable with NPM or Yarn:
Managing processes