- Clone this repository
- Add .env file to root directory
- Add the following to .env file:
PORT=5000 DB_HOST="your_host" DB_USER="postgres" DB_PASSWORD="your_password" DB_NAME="your_db_name"
- Make sure you have docker installed.
- Run the following command to build the image:
This will build the image and tag it as
docker build -t node-hello-world .
node-hello-world
. - Run the following command to run the image:
This will run the image on port 5000.
docker run -d -p 5000:5000 --name node-hello-world node-hello-world
- Open http://localhost:5000 in your browser.
-
Notifications
You must be signed in to change notification settings - Fork 0
rohit-techolution/node-hello-world-docker-app
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published