Sign inSign up

kulbhushanmayer/nodejs-app

By kulbhushanmayer

Updated over 2 years ago

Image
0

5.6K

kulbhushanmayer/nodejs-app repository overview

Usage

1. kulbhushanmayer/nodejs-app:v1
Example: docker container run -d -p 4000:4000 kulbhushanmayer/nodejs-app:v1
2. kulbhushanmayer/nodejs-app:database-setup
While using the above image below mentioned environment variables should be configured while starting the container
  1. DB_URL
  2. DB_USER
  3. PGPASSWORD
Example: docker container run -e DB_URL=172.17.0.2 -e DB_USER=postgres -e PGPASSWORD=india123 --name database-setup kulbhushanmayer/nodejs-app:database-setup
Once started, this container will connect with the database server running in the container with the private IP 172.17.0.2 and create a new database with the name nodejs_demo and then create a new table with the name employee in the same.

Tag summary

Content type

Image

Digest

sha256:882c45f17

Size

140 MB

Last updated

over 2 years ago

docker pull kulbhushanmayer/nodejs-app:2.1