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:
salirezav
2025-09-11 14:24:21 -04:00
parent 5bdb070173
commit 8e7b5b054f
7 changed files with 373 additions and 1 deletions

27
dev-stop.sh Executable file
View 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"