Skip to content

fix(compose): correct Postgres 18 volume mount path for with-db profile#1

Open
imKXNNY wants to merge 1 commit intocoleam00:mainfrom
imKXNNY:fix/postgres18-volume-mount
Open

fix(compose): correct Postgres 18 volume mount path for with-db profile#1
imKXNNY wants to merge 1 commit intocoleam00:mainfrom
imKXNNY:fix/postgres18-volume-mount

Conversation

@imKXNNY
Copy link

@imKXNNY imKXNNY commented Dec 16, 2025

  • Problem: docker compose --profile with-db up fails with Postgres 18+ complaining about an "unused mount/volume" at /var/lib/postgresql/data.
  • Root cause: compose mounts the named volume at the legacy path (/var/lib/postgresql/data), but Postgres 18+ uses a major-version-specific data layout and expects a single mount at /var/lib/postgresql.
  • Fix: mount postgres_data at /var/lib/postgresql (no /data).
  • Test (fresh volume recommended):
    docker compose --profile with-db down -v; docker compose --profile with-db up -d --build
    Result: postgres becomes healthy and app-with-db starts successfully.

Windows note: ; works in PowerShell. On Linux/macOS use && to chain commands.

@renecannao
Copy link

👍

imKXNNY referenced this pull request in imKXNNY/Remote-Agentic-Coding-System Jan 26, 2026
- Added findBestCodebaseForPath to database layer
- Updated conversation update logic to include assistant type
- Refactored /setcwd to automatically detect and switch codebase
- Added RCA and Issue Draft documentation
- Updated .gitignore for canonical docs
- Applied user's CLAUDE.md simplification
roger704 added a commit to roger704/remote-agentic-coding-system that referenced this pull request Feb 24, 2026
Problem:
When handling multiple GitHub issues concurrently, they all share the same
workspace directory. This causes conflicts when:
- Issue coleam00#1 creates a branch and makes changes
- Issue coleam00#2 arrives and triggers git cleanup
- Issue coleam00#1's uncommitted work is destroyed

Solution:
Each issue/PR now gets its own isolated git worktree:
- /workspace/REPO/           # Base repo (shared git history)
- /workspace/REPO-issue-29/  # Worktree for issue #29
- /workspace/REPO-issue-26/  # Worktree for issue #26

Features added:
1. **Worktree per issue** - getOrCreateWorktree() creates isolated worktrees
2. **Retry logic** - 3 attempts with exponential backoff for transient failures
3. **Base repo check** - Detects missing repo after container restart
4. **Always update cwd** - Session always uses correct worktree path
5. **Auto cleanup** - Worktrees cleaned on PR merge/issue close
6. **Stale cleanup** - Worktrees older than 7 days are automatically removed

Benefits:
- Concurrent work on multiple issues without interference
- Disk-efficient (worktrees share git history)
- Handles container restarts gracefully
- Self-cleaning to prevent disk exhaustion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants