Skip to content

Dockerize Nodejs Express and postgres example - Nodejs connect Postgresql using Docker Compose

Notifications You must be signed in to change notification settings

Agustine-dev/docker-compose-nodejs-postgres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose Nodejs and Postgres example

Run the System

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

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:

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:

Docker Compose Node.js and Postgres example

Related Posts:

Node.js, Express & PostgreSQL: CRUD Rest Api example

Node.js Express Pagination with PostgreSQL example

Import CSV data into PostgreSQL using Node.js

Export PostgreSQL data to CSV file using Node.js

Node.js JWT Authentication & Authorization with PostgreSQL example

Associations:

Sequelize Associations: One-to-Many Relationship example

Sequelize Associations: Many-to-Many Relationship example

About

Dockerize Nodejs Express and postgres example - Nodejs connect Postgresql using Docker Compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.5%
  • Dockerfile 1.5%