Add comprehensive data persistence verification
- Added test-persistence.sh script to verify Docker volume mounting - Enhanced DEPLOYMENT.md with detailed data persistence documentation - Updated deploy.sh to verify data directory mount on deployment - Added data/README.md explaining data storage and backup - Updated data/.gitignore to include README.md - Documented what data persists and what doesn't - Added backup strategies and troubleshooting tips
This commit is contained in:
1 parent
ad37bb57ae
commit
97c47cde1c
5 files changed
+235
-1
No files matched your search
@@ -43,6 +43,19 @@ echo ""
|
||||
echo "🚀 Starting Capsule..."
|
||||
docker-compose up -d
|
||||
|
||||
echo ""
|
||||
echo "⏳ Waiting for container to start..."
|
||||
sleep 5
|
||||
|
||||
# Verify data directory is mounted
|
||||
echo ""
|
||||
echo "🔍 Verifying data persistence..."
|
||||
if docker-compose exec capsule ls -la /app/data >/dev/null 2>&1; then
|
||||
echo "✅ Data directory is correctly mounted in container"
|
||||
else
|
||||
echo "⚠️ Warning: Could not verify data directory mount"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "✅ Deployment complete!"
|
||||
echo ""
|
||||
@@ -57,4 +70,8 @@ echo " docker-compose restart # Restart container"
|
||||
echo " docker-compose down # Stop and remove container"
|
||||
echo ""
|
||||
echo "💾 Your data is stored in: ./data/"
|
||||
echo " - This directory persists across container restarts"
|
||||
echo " - Back it up regularly!"
|
||||
echo ""
|
||||
echo "🧪 To test data persistence: ./test-persistence.sh"
|
||||
echo ""
|
||||
Reference in new issue
Block a user