File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 9595 docker image prune -f
9696
9797 echo "Deployment with migrations and database seeding completed!"
98+
99+ # Check container status
100+ echo "=== Checking container status ==="
101+ docker compose -f docker-compose.prod.yml --profile data ps
102+
103+ # Show container logs for debugging
104+ echo "=== Container health check ==="
105+ docker ps --filter "name=smart-class" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
106+
107+ # Check if all services are running
108+ if docker compose -f docker-compose.prod.yml --profile data ps | grep -E "(Exit|Restarting)"; then
109+ echo "⚠️ WARNING: Some containers are not running properly!"
110+ echo "=== Showing logs for non-running containers ==="
111+ docker compose -f docker-compose.prod.yml --profile data logs --tail=50
112+ exit 1
113+ else
114+ echo "✅ All containers are running successfully!"
115+ fi
You can’t perform that action at this time.
0 commit comments