Add the "shutdownController.sh" script.

This commit is contained in:
Lampros Smyrnaios 2023-05-03 20:43:44 +03:00
parent fd15372fd6
commit 3473d91ce4
1 changed files with 8 additions and 0 deletions

8
shutdownController.sh Executable file
View File

@ -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$")"