mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-04-05 11:51:32 +00:00
Docker Compose Bind Mount Preview Test
Test case for coolify#7802 — volume mappings from repo content in Preview Deployments.
Setup
- Add this repo as a Docker Compose resource in Coolify
- Set the base directory to
/docker-compose-bind-mount-preview - Deploy — should succeed (db_bootstrap runs the script from
./scripts) - Enable Preview Deployments
- 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.