Skip to content

Commit

Permalink
chore(dev-tools): add justfile command to clean up containers (#9500)
Browse files Browse the repository at this point in the history
Add a command that I tend to use a lot, in case others want to use it.
  • Loading branch information
cpcloud authored Jul 2, 2024
1 parent b6e5b04 commit be9aa0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ down *backends:
docker compose rm {{ backends }} --force --stop --volumes
fi

# stop all containers, prune networks, and remove all volumes
stop *backends:
just down {{ backends }}
docker network prune -f
docker volume prune -af

# tail logs for one or more services
tail *services:
docker compose logs --follow {{ services }}
Expand Down

0 comments on commit be9aa0e

Please sign in to comment.