#!/bin/bash
# Inspect what's inside the nginx container
CID=$(docker ps -a --format '{{.Names}}' | grep bjcuh | head -1)
echo "Container: $CID"
echo "=== /usr/share/nginx/html contents ==="
docker exec "$CID" ls -la /usr/share/nginx/html/
echo ""
echo "=== is there index.html ==="
docker exec "$CID" cat /usr/share/nginx/html/index.html 2>/dev/null | head -5 || echo "NO index.html"
echo ""
echo "=== check out/ build dir on host ==="
ls -la /data/coolify/ 2>/dev/null | head
find / -maxdepth 4 -name "index.html" -path "*bjcuh*" 2>/dev/null | head
