- Updated HorizontalTimelineCalendar to support full 24-hour scheduling with enhanced marker positioning and dragging capabilities. - Introduced extendLeft and extendRight properties in RepetitionBorder for better visual representation of markers extending beyond their borders. - Enhanced tooltip functionality for vertical lines in the timeline, providing clearer time information. - Modified Scheduling component to allow scheduling from midnight to midnight, improving user experience in time selection. - Adjusted Docker script permissions for better execution control.
56 lines
1.4 KiB
Bash
Executable File
56 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# Docker Compose Reset Script
|
|
# This script performs a complete reset of the Docker Compose environment:
|
|
# - Stops and removes containers, networks, and volumes
|
|
# - Prunes unused Docker resources (containers, images, networks, volumes)
|
|
# - Rebuilds and starts all services in detached mode
|
|
|
|
set -e # Exit on error
|
|
|
|
echo "=== Docker Compose Reset ==="
|
|
echo ""
|
|
|
|
# Get the project root directory (parent of scripts directory)
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
|
|
# Change to project root directory
|
|
cd "$PROJECT_ROOT"
|
|
|
|
echo "Working directory: $PROJECT_ROOT"
|
|
echo ""
|
|
|
|
echo "1. Stopping and removing containers, networks, and volumes..."
|
|
docker compose down -v
|
|
echo ""
|
|
|
|
echo "2. Pruning unused Docker resources..."
|
|
echo " - Pruning unused containers..."
|
|
docker container prune -f
|
|
|
|
echo " - Pruning unused images..."
|
|
docker image prune -af
|
|
|
|
echo " - Pruning unused networks..."
|
|
docker network prune -f
|
|
|
|
echo " - Pruning unused volumes..."
|
|
docker volume prune -f
|
|
echo ""
|
|
|
|
echo "3. Rebuilding and starting all services in detached mode..."
|
|
docker compose up --build -d
|
|
echo ""
|
|
|
|
echo "4. Checking service status..."
|
|
docker compose ps
|
|
echo ""
|
|
|
|
echo "=== Docker Compose Reset Complete ==="
|
|
echo ""
|
|
echo "All services have been reset and are running in detached mode."
|
|
echo "Use 'docker compose logs -f' to view logs or 'docker compose ps' to check status."
|
|
|
|
|
|
|