Add development scripts and Docker Compose configuration for local environment setup
- Introduced `dev-start.sh`, `dev-stop.sh`, `dev-logs.sh`, and `dev-shell.sh` for managing the development environment. - Added `docker-compose.dev.yml` to define services for API and web applications with appropriate configurations. - Updated `README.md` to include instructions for development mode and commands for managing the environment.
This commit is contained in:
27
dev-stop.sh
Executable file
27
dev-stop.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# USDA Vision Development Stop Script
|
||||
# This script stops the development environment
|
||||
|
||||
set -e
|
||||
|
||||
echo "🛑 Stopping USDA Vision Development Environment"
|
||||
echo "=============================================="
|
||||
|
||||
# Check if docker-compose.dev.yml exists
|
||||
if [ ! -f "docker-compose.dev.yml" ]; then
|
||||
echo "❌ Error: docker-compose.dev.yml not found!"
|
||||
echo "Please make sure you're in the project root directory."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "🔄 Stopping development containers..."
|
||||
|
||||
# Stop the development environment
|
||||
docker compose -f docker-compose.dev.yml down
|
||||
|
||||
echo ""
|
||||
echo "✅ Development environment stopped successfully"
|
||||
echo ""
|
||||
echo "💡 Tip: Use './dev-start.sh' to start the development environment again"
|
||||
echo "💡 Tip: Use './dev-logs.sh' to view logs from the last run"
|
||||
Reference in New Issue
Block a user