https://github.com/swarajkumarsingh/hello-docker
Demonstration how to use Docker with Nodejs (docker compose, .dockerignore, Dockerfile)
https://github.com/swarajkumarsingh/hello-docker
docker docker-compose docker-image nodejs
Last synced: about 2 months ago
JSON representation
Demonstration how to use Docker with Nodejs (docker compose, .dockerignore, Dockerfile)
- Host: GitHub
- URL: https://github.com/swarajkumarsingh/hello-docker
- Owner: swarajkumarsingh
- License: mit
- Created: 2023-09-16T12:31:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-28T08:19:47.000Z (over 2 years ago)
- Last Synced: 2024-12-28T03:42:15.600Z (over 1 year ago)
- Topics: docker, docker-compose, docker-image, nodejs
- Language: Batchfile
- Homepage: https://github.com/swarajkumarsingh/hello-docker
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Nodejs API | Docker
* This repository serves as a demonstration for a straightforward Node.js project using Docker. It can be utilized by other programmers and cloud platforms like EC2, VRE, and Heroku.
### Installation
1. Install Docker
2. Run the run.bat file
```shell
./run.bat
```
3. All set, no need to install nodejs, express and other stuff.
4. Alternately Docker engages the terminal, so if you want to use a single terminal, and perform other action then, comment the last line [in file](./run.bat)
### What is Docker
- You can see Docker as a way to pack you code in a nice little container that contains everything it needs to run it; it containerizes your code. The benefits are numerous: containers are scalable, cost-effective and are isolated from each other.
### Useful Docker commands
1. List All docker images
```shell
docker images
```
2. List All running docker containers
```shell
docker ps
```
## License
This boilerplate is [MIT licensed](./LICENSE).
## Contributing
Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.