Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bezkoder/docker-compose-nodejs-mysql
Docker Compose Nodejs Express and MySQL example
https://github.com/bezkoder/docker-compose-nodejs-mysql
docker docker-compose mysql mysql-database node nodejs rest-api restful-api
Last synced: 2 months ago
JSON representation
Docker Compose Nodejs Express and MySQL example
- Host: GitHub
- URL: https://github.com/bezkoder/docker-compose-nodejs-mysql
- Owner: bezkoder
- Created: 2021-08-17T05:50:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-14T09:07:28.000Z (about 1 year ago)
- Last Synced: 2024-09-28T15:41:23.548Z (3 months ago)
- Topics: docker, docker-compose, mysql, mysql-database, node, nodejs, rest-api, restful-api
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 80
- Watchers: 4
- Forks: 84
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose Nodejs and MySQL example
## Run the System
We can easily run the whole with only a single command:
```bash
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:
```bash
docker compose up -d
```## Stop the System
Stopping all the running containers is also simple with a single command:
```bash
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:
```bash
docker compose down --rmi all
```For more detail, please visit:
> [Dockerize Node.js Express and MySQL example - Docker Compose](https://www.bezkoder.com/docker-compose-nodejs-mysql/)Related Posts:
> [Build Node.js Rest APIs with Express & MySQL](https://www.bezkoder.com/node-js-rest-api-express-mysql/)> [Upload/store images in MySQL using Node.js, Express & Multer](https://www.bezkoder.com/node-js-upload-image-mysql/)
> [Node.js: Upload CSV file data into Database with Express](https://bezkoder.com/node-js-upload-csv-file-database/)
> [Node.js: Upload Excel file data into Database with Express](https://www.bezkoder.com/node-js-upload-excel-file-database/)
> [Build Node.js Rest APIs with Express, Sequelize & MySQL](https://bezkoder.com/node-js-express-sequelize-mysql/)
> [Server side Pagination in Node.js with Sequelize and MySQL](https://bezkoder.com/node-js-sequelize-pagination-mysql/)
> [Deploying/Hosting Node.js app on Heroku with MySQL database](https://bezkoder.com/deploy-node-js-app-heroku-cleardb-mysql/)
Security:
> [Node.js Express: JWT example | Token Based Authentication & Authorization](https://bezkoder.com/node-js-jwt-authentication-mysql/)Associations:
> [Sequelize Associations: One-to-Many Relationship example](https://bezkoder.com/sequelize-associate-one-to-many/)> [Sequelize Associations: Many-to-Many Relationship example](https://bezkoder.com/sequelize-associate-many-to-many/)