This project demonstrates how to run a NodeJS application with PostgreSQL using Docker Compose.
- Docker
- Docker Compose
-
Clone the repository:
git clone https://github.com/hakimamarullah/vascomm-expressjs
-
Navigate to the project directory:
cd vascomm-expressjs
-
Start PostgreSQL container:
docker-compose up --build -d
-
Run application (skip this step if the container already running from previous step):
npm start
-
Access the ExpressJS application at http://localhost:3000.
- [non-detached] To stop the application and remove the containers, press
Ctrl + C
in the terminal wheredocker-compose
is running. - If you use
-d
option then simple run this command to stop all containersdocker-compose down