UrlsController/shutdownController.sh

9 lines
606 B
Bash
Raw Normal View History

echo "Running compose down.."
sudo docker compose -f ./prometheus/docker-compose-prometheus.yml down
sudo docker compose -f docker-compose.yml -f ./prometheus/docker-compose-prometheus.yml down
# In case we need to hard-remove the containers, use the following commands:
#sudo docker stop $(sudo docker ps -aqf "name=^(?:urlscontroller-urls_controller|prometheus-(?:prometheus|grafana))-1$") || true # There may be no active containers
#sudo docker rm $(sudo docker ps -aqf "name=^(?:urlscontroller-urls_controller|prometheus-(?:prometheus|grafana))-1$") || true # All containers may be already removed.