Override host-side WORKSPACE_PATH with /workspace inside containers.
The .env value (e.g., ./workspace) is for volume mounting, but container
code needs the mount point path (/workspace).
Fixes /repos and other workspace commands failing in Docker.
* Improve clone URL handling and fix docker config
- Normalize URLs by stripping trailing slashes
- Convert SSH URLs (git@github.com:) to HTTPS format
- Check if directory exists before cloning to prevent errors
- Fix container PORT env var for consistent mapping
- Update postgres volume path
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: Make PORT fully configurable in Docker
Use ${PORT:-3000}:${PORT:-3000} mapping so the same PORT env var
controls both external and internal ports. This allows PORT to be
configured via .env instead of being hardcoded.
Applied to both app and app-with-db services for consistency.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
- Add app-with-db service with DATABASE_URL override for Docker networking
- Add external-db profile for app service (Supabase, Neon users)
- Add with-db profile for Docker postgres + app-with-db
- Add dynamic port mapping (PORT, POSTGRES_PORT env vars)
- Add depends_on with health check for Docker DB mode
Usage:
External DB: docker-compose --profile external-db up
Docker DB: docker-compose --profile with-db up