zkt25/z1/remove-app.sh
2025-03-18 13:26:50 +00:00

11 lines
368 B
Bash

#!/bin/bash
echo "Removing the application..."
# Remove the containers forcefully.
docker rm -f flask_app postgres_db
# Remove the custom network and volume if they exist.
docker network rm app_network 2>/dev/null || echo "Network app_network already removed."
docker volume rm pgdata 2>/dev/null || echo "Volume pgdata already removed."
echo "Application removed."