Skip to content

Commit

Permalink
Merge pull request #2658 from saltykheera/remove_volume-fr
Browse files Browse the repository at this point in the history
Add new make target to remove docker volumes along with containers
  • Loading branch information
vigneshhari authored Dec 20, 2024
2 parents 3b903cf + ea14899 commit d24b016
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ up:
down:
docker compose -f docker-compose.yaml -f $(docker_config_file) down

teardown:
docker compose -f docker-compose.yaml -f $(docker_config_file) down -v

load-dummy-data:
docker compose exec backend bash -c "python manage.py load_dummy_data"

Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@ to load dummy data for testing run:
```bash
make load-dummy-data
```
Stops and removes the containers without affecting the volumes:

```bash
make down
```
Stops and removes the containers and their volumes:

```bash
make teardown
```

#### Docker

Expand Down

0 comments on commit d24b016

Please sign in to comment.