Major fixes to database connectivity in Docker:
1. Fix alembic.ini - Changed localhost to postgres (line 90)
- This was the root cause of localhost connection errors
2. Fix database.py default - Changed localhost to postgres
- Ensures correct default when env var not set
3. Fix config.py default - Changed localhost to postgres
- Consistent configuration across all files
4. Fix .env file - Changed DATABASE_URL from localhost to postgres
- Prevents local dev config from overriding Docker config
5. Update Dockerfile.backend - Add debug logging to verify env vars
6. Fix docker-compose.yml frontend port - Changed 3000 to 8888
7. Fix Celery commands - Use 'uv run celery' instead of just 'celery'
8. Remove obsolete 'version' attribute from docker-compose.yml
Verification:
- DATABASE_URL env var: postgresql+asyncpg://postgres:postgres@postgres:5432/mockupaws ✅
- Backend now connects to postgres:5432 instead of localhost ✅
- Frontend accessible at http://localhost:8888✅
Note: There's a separate migration error with index creation
(idx_logs_recent using NOW() - requires IMMUTABLE function).
This is a database migration issue, not a connection issue.
- Update README.md with v0.3.0 completion status and improved setup instructions
- Update export/progress.md with completed tasks (53/55, 96% progress)
- Update export/architecture.md with current project structure and implementation status
- Add docker-compose.yml with PostgreSQL service
- Add Dockerfile.backend for production builds
- Add frontend/Dockerfile for multi-stage builds
- Update .gitignore with comprehensive rules for Python, Node.js, and Docker
Project status:
- v0.2.0: Database and Backend API ✅
- v0.3.0: Frontend React implementation ✅
- v0.4.0: Reports and visualization (planned)