Skip to content

Conversation

@AstroGD
Copy link

@AstroGD AstroGD commented Dec 7, 2025

This fixes an issue when you are using both turborepo and docker compose where those commands will fail:

> docker compose up -d

unknown shorthand flag: 'd' in -d

Usage:  docker [OPTIONS] COMMAND [ARG...]

Run 'docker --help' for more information
 ELIFECYCLE  Command failed with exit code 125.


There is a closed issue in the turborepo repository proposing this fix.
See vercel/turborepo#8653

Summary by CodeRabbit

  • Chores
    • Updated database management commands (start, watch, stop, down) to use an updated environment mode setting when Docker-based database setup is configured.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Dec 7, 2025

@AstroGD is attempting to deploy a commit to the Better T Stack Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 7, 2025

Walkthrough

A single file was updated to add the --env-mode=loose flag to four database-related turbo commands (db:start, db:watch, db:stop, db:down) when docker DB setup is selected in the project configuration.

Changes

Cohort / File(s) Summary
Docker Database Configuration
apps/cli/src/helpers/core/project-config.ts
Added --env-mode=loose flag to turbo commands for db:start, db:watch, db:stop, and db:down scripts when docker DB setup is selected

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Single file modified with a straightforward flag addition to existing commands
  • Change is isolated to database script configuration under docker setup path

Poem

🐰 A flag finds its place so neat,
--env-mode=loose keeps databases sweet!
Four scripts now dance with a lighter stride,
Docker DB setup takes this in stride.
Turbo commands gleam bright and trim! ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding --env-mode=loose flag to docker DB scripts to fix turborepo compatibility issue.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@AstroGD AstroGD changed the title Fix docker not finding compose plugin when using turborepo Fix docker not finding compose plugin when using turborepo by adding --env-mode=loose Dec 7, 2025
@AstroGD
Copy link
Author

AstroGD commented Dec 7, 2025

@coderabbitai generate docstrings

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 7, 2025

✅ Actions performed

Initiated docstring generation; will generate only if new commits exist.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 7, 2025

Note

Docstrings generation - SUCCESS
Generated docstrings for this pull request at #714

coderabbitai bot added a commit that referenced this pull request Dec 7, 2025
Docstrings generation was requested by @AstroGD.

* #713 (comment)

The following files were modified:

* `apps/cli/src/helpers/core/project-config.ts`
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.

1 participant