From d7f89e1363f46fc322c27899c343bc25fb08a8a5 Mon Sep 17 00:00:00 2001 From: Davlat Davydov Date: Mon, 10 Aug 2026 13:01:27 +0300 Subject: [PATCH] feat(infra): justfile down recipe --- Justfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 75acefe..12fbb53 100644 --- a/Justfile +++ b/Justfile @@ -6,7 +6,7 @@ lint: clean: docker compose -f docker-compose.base.yaml down -v -run target build="" profile="": +up target build="" profile="": #!/usr/bin/env bash set -e @@ -36,8 +36,22 @@ run target build="" profile="": up $BUILD_FLAG fi +down rm="": + #!/usr/bin/env bash + + set -e + + RM_FLAG="" + + if [ "{{rm}}" = "rm" ]; then + RM_FLAG="-v" + fi + + docker compose -f docker-compose.base.yaml down $RM_FLAG + restart target: docker compose -f docker-compose.base.yaml restart {{target}} + attach target: docker compose -f docker-compose.base.yaml exec -it {{target}} /bin/bash \ No newline at end of file