Skip to content

Commit

Permalink
update docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswasindhu Mandal authored and Biswasindhu Mandal committed Oct 16, 2024
1 parent 1d565c8 commit 9088b6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion data/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ View Other Docker Container Command | `docker container COMMAND`
```

#### What is Docker Compose File?
Run Docker Compose File : `docker compose up`
Command | description
------- | --------
Build Docker Image | `docker-compose build`
Start the Docker Container | `docker compose up`

### Docker Compose Sample File
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"server": "http-server -p 12345 -c-1 -o",
"start": "nodemon -x \"npm run server\"",
"docker": "docker compose up"
"docker": "docker-compose build && docker compose up"
},
"node-version": {
"node": "16.15.1"
Expand Down

0 comments on commit 9088b6c

Please sign in to comment.