ChrisYhP / docker-compose-nodejs-mysql

Docker Compose Nodejs Express and MySQL example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Compose Nodejs and MySQL example

Run the System

We can easily run the whole with only a single command:

docker-compose up

Docker will pull the MySQL and Node.js images (if our machine does not have it before).

The services can be run on the background with command:

docker-compose up -d

Stop the System

Stopping all the running containers is also simple with a single command:

docker-compose down

If you need to stop and remove all containers, networks, and all images used by any service in docker-compose.yml file, use the command:

docker-compose down --rmi all

For more detail, please visit:

Dockerize Node.js Express and MySQL example - Docker Compose

Related Posts:

Build Node.js Rest APIs with Express & MySQL

Upload/store images in MySQL using Node.js, Express & Multer

Node.js: Upload CSV file data into Database with Express

Node.js: Upload Excel file data into Database with Express

Build Node.js Rest APIs with Express, Sequelize & MySQL

Server side Pagination in Node.js with Sequelize and MySQL

Deploying/Hosting Node.js app on Heroku with MySQL database

Security:

Node.js Express: JWT example | Token Based Authentication & Authorization

Associations:

Sequelize Associations: One-to-Many Relationship example

Sequelize Associations: Many-to-Many Relationship example

About

Docker Compose Nodejs Express and MySQL example


Languages

Language:JavaScript 95.9%Language:Shell 2.6%Language:Dockerfile 1.5%