fix: align docker compose environment variables#223
Conversation
|
Warning Review limit reached
More reviews will be available in 30 minutes and 48 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesDocker Compose app service updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docker-compose.yml`:
- Around line 26-27: The healthcheck in docker-compose relies on wget, but the
runtime image used by the app container does not include it. Update the final
Dockerfile stage used by the container to install wget, or change the
healthcheck in docker-compose to use a command already available in the image.
Refer to the healthcheck test entry and the Dockerfile runtime stage so the fix
keeps the container healthy.
- Around line 15-17: The JWT_SECRET, JWT_REFRESH_SECRET, and ENCRYPTION_KEY
entries in docker-compose.yml currently fall back to repository-known defaults,
which allows predictable credentials when .env is absent. Update the compose
configuration to require these variables without shared fallback values, and
move any sample placeholders into .env.example so users must supply real secrets
before starting production. Use the existing JWT_SECRET, JWT_REFRESH_SECRET, and
ENCRYPTION_KEY variable definitions as the place to make this change.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
|



Summary
Fix Docker Compose configuration to align with the application's expected environment variables and startup requirements.
Changes
JWT_ACCESS_SECRETtoJWT_SECRETto match the Go configuration.JWT_REFRESH_SECRETunchanged and updated its default value to satisfy the application's minimum secret length requirement.ENCRYPTION_KEYto the Docker Compose environment configuration./healthendpoint..envviaenv_filefor environment variable management.Verification
internal/config/config.go.ENCRYPTION_KEYis available through Docker Compose..env.example./healthendpoint exists and is suitable for container health checks.JWT_ACCESS_SECRETin the repository.Fixes #93
Checklist
I have read the CLA and agree to its terms.on this PR.Summary by CodeRabbit