An open API service indexing awesome lists of open source software.

https://github.com/yogain123/dockering-node

Dockering Basic Node app and linking it with mongo image and Logging Errors in Bugsnag
https://github.com/yogain123/dockering-node

bugsnag docker docker-compose mongo nodejs

Last synced: 3 months ago
JSON representation

Dockering Basic Node app and linking it with mongo image and Logging Errors in Bugsnag

Awesome Lists containing this project

README

        

# dockering-node

## Basic docker and docker-compose commands to Run App
- docker build -t yogendra/nodeapp .
- docker run -p 4444:4444 yogendra/nodeapp
- docker-compose up --build
- docker-compose down
- docker version
- docker-compose version
- docker images
- docker ps

> t=> tag, p=> port

## Run App Outside Of Docker Container

```
npm install
npm start
```

## Run App Inside Docker Container (Running only Node Dockerfile)
```
docker build -t yogendra/dockering-node .
docker run -p 1234:1234 yogendra/dockering-node
```

## Run App With DB Connection Active (mongo) -> Docker Compose
```
docker-compose up --build (To Start App)
docker-compose down (To Stop App)
```
This Basic Node App is been packed inside docker and the container is been deployed in Heroku
https://dockering-node.herokuapp.com/

## Deploying the container to Heroku

- heroku login
- docker ps
- heroku container:login
- heroku container:push web --app
- heroku container:release web --app

> LICENSE: MIT
> Author: Yogendra Saxena