Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bezkoder/docker-compose-nodejs-postgres
Dockerize Nodejs Express and postgres example - Nodejs connect Postgresql using Docker Compose
https://github.com/bezkoder/docker-compose-nodejs-postgres
docker docker-compose docker-container docker-image dockerfile express express-js expressjs node node-js nodejs postgres postgresql postgresql-database
Last synced: 2 months ago
JSON representation
Dockerize Nodejs Express and postgres example - Nodejs connect Postgresql using Docker Compose
- Host: GitHub
- URL: https://github.com/bezkoder/docker-compose-nodejs-postgres
- Owner: bezkoder
- Created: 2023-10-15T04:23:39.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-25T14:38:20.000Z (about 1 year ago)
- Last Synced: 2024-05-11T18:13:15.606Z (6 months ago)
- Topics: docker, docker-compose, docker-container, docker-image, dockerfile, express, express-js, expressjs, node, node-js, nodejs, postgres, postgresql, postgresql-database
- Language: JavaScript
- Homepage: https://www.bezkoder.com/docker-compose-nodejs-postgres/
- Size: 5.86 KB
- Stars: 9
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose Nodejs and Postgres example
## Run the System
We can easily run the whole with only a single command:
```bash
docker compose up
```Docker will pull the Postgres 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:
> [Docker Compose Node.js and Postgres example](https://www.bezkoder.com/docker-compose-nodejs-postgres/)Related Posts:
> [Node.js, Express & PostgreSQL: CRUD Rest Api example](https://www.bezkoder.com/node-express-sequelize-postgresql/)> [Node.js Express Pagination with PostgreSQL example](https://www.bezkoder.com/node-js-pagination-postgresql/)
> [Import CSV data into PostgreSQL using Node.js](https://www.bezkoder.com/node-js-csv-postgresql/)
> [Export PostgreSQL data to CSV file using Node.js](https://www.bezkoder.com/node-js-export-postgresql-csv-file/)
> [Node.js JWT Authentication & Authorization with PostgreSQL example](https://www.bezkoder.com/node-js-jwt-authentication-postgresql/)
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/)