mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-04-05 20:01:32 +00:00
Test case for coolify#7802 — reproduces the bug where bind mount volumes from repo content get an incorrect -pr-N suffix during Preview Deployments. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
779 B
Markdown
20 lines
779 B
Markdown
# Docker Compose Bind Mount Preview Test
|
|
|
|
Test case for [coolify#7802](https://github.com/coollabsio/coolify/issues/7802) — volume mappings from repo content in Preview Deployments.
|
|
|
|
## Setup
|
|
|
|
1. Add this repo as a Docker Compose resource in Coolify
|
|
2. Set the base directory to `/docker-compose-bind-mount-preview`
|
|
3. Deploy — should succeed (db_bootstrap runs the script from `./scripts`)
|
|
4. Enable **Preview Deployments**
|
|
5. Open a PR and deploy the preview
|
|
|
|
## Expected
|
|
|
|
The preview deployment should work the same as the main deployment — the `./scripts` bind mount should resolve to the repo's `scripts/` directory.
|
|
|
|
## Actual (bug)
|
|
|
|
The preview deployment fails because Coolify appends `-pr-N` to the bind mount path, looking for `scripts-pr-1` which doesn't exist.
|