zkt25/z1/remove-app.sh

13 lines
347 B
Bash

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