https://github.com/danielrohers/node-docker
Example of Node application with Docker
https://github.com/danielrohers/node-docker
docker docker-compose expressjs nodejs
Last synced: 3 months ago
JSON representation
Example of Node application with Docker
- Host: GitHub
- URL: https://github.com/danielrohers/node-docker
- Owner: danielrohers
- License: mit
- Created: 2017-07-01T13:55:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-01T14:20:10.000Z (almost 9 years ago)
- Last Synced: 2025-03-18T03:31:41.743Z (over 1 year ago)
- Topics: docker, docker-compose, expressjs, nodejs
- Language: JavaScript
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-docker
[](https://david-dm.org/danielrohers/node-docker)
[](https://david-dm.org/danielrohers/node-docker#info=devDependencies)
## Requirements
[Docker](https://docs.docker.com/engine/installation)
[Docker Compose](https://docs.docker.com/compose/install)
## Lets go
**Check the versions**
Docker:
```bash
$ docker --version # Docker version 17.06.0-ce, build 02c1d87
```
Docker Compose:
```bash
$ docker-compose --version # docker-compose version 1.14.0, build c7bdf9e
```
**Build or rebuild services**
```bash
$ docker-compose build
```
**Create and start containers**
*Run containers in the background with **-d***
```bash
$ docker-compose up -d
```
**Go to** [http://localhost:3000](http://localhost:3000)
**Be happy :)**
## Extra commands
**Stop and remove containers, networks, images, and volumes**
```bash
$ docker-compose down
```
**List containers**
```bash
$ docker-compose ps
```
**View output from containers**
*Follow log output **-f***
```bash
$ docker-compose logs -f
```
## Licence
[MIT License](LICENSE)