Skip to content

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

Enter psql:

    psql ticketDB postgres

Show all tables

    \dt

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages