From 3473d91ce40efb453acb88805179b5818a297017 Mon Sep 17 00:00:00 2001 From: LSmyrnaios Date: Wed, 3 May 2023 20:43:44 +0300 Subject: [PATCH] Add the "shutdownController.sh" script. --- shutdownController.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 shutdownController.sh diff --git a/shutdownController.sh b/shutdownController.sh new file mode 100755 index 0000000..ffaea71 --- /dev/null +++ b/shutdownController.sh @@ -0,0 +1,8 @@ +echo "Running compose down.." +sudo docker compose down + +echo "Stopping the running container.." +sudo docker stop "$(sudo docker ps -aqf "name=^urlscontroller-urls_controller-1$")" + +echo "Removing the container.." +sudo docker rm "$(sudo docker ps -aqf "name=^urlscontroller-urls_controller-1$")"