Fix cleanup in Makefile by removing volumes with docker compose
Updated the `clean` target to use `docker compose down -v`, ensuring that volumes are also removed during cleanup. This prevents leftover volumes from persisting and occupying unnecessary space.
This commit is contained in:
2
Makefile
2
Makefile
@@ -18,7 +18,7 @@ deploy:
|
|||||||
docker compose -f docker-compose.deploy.yml up -d
|
docker compose -f docker-compose.deploy.yml up -d
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
docker compose down -
|
docker compose down -v
|
||||||
|
|
||||||
push-images:
|
push-images:
|
||||||
docker build -t $(REGISTRY)/backend:$(VERSION) ./backend
|
docker build -t $(REGISTRY)/backend:$(VERSION) ./backend
|
||||||
|
|||||||
Reference in New Issue
Block a user