fix: detect container port ownership by actual port binding, not name

↗ view on GitHub · Dshamir · 2026-05-23 · 0ef9d600

Container ownership detection guessed names like mike-postgres-1, but
Docker Compose defaults the project name from the directory (ai-legal),
so all ports showed CONFLICT. Replace with docker ps --filter publish=N
which finds the actual container holding each port regardless of project
name prefix. Also pass -p mike to docker compose for consistent naming
going forward.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Repository Dshamir/AI-Legal
Author Dshamir <dshamir@blucap.ca>
Authored
Parents 734792f5
Stats 1 file changed , +10 , -9
Part of Self-hosted Docker stack and ailegal.sh orchestration

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-0ef9d600.md from inside the repo you want the change in.

⬇ Download capture-commit-0ef9d600.md