Fix Docker port conflicts for evals services #5644
Open
+132
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The
pnpm evals
command runs Docker services for postgres (port 5432) and redis (port 6379) which conflict with other services running on the same ports.Solution
This PR resolves the port conflicts by updating the default ports used by the evals services:
Changes
.env.development
and.env.test
to use port 5433 for postgresDATABASE_URL
in environment files to reflect new port.env.local.example
with port configuration documentationREADME.md
with comprehensive port configuration guidePORT-CONFLICT-SOLUTION.md
with detailed implementation planBenefits
Testing
The existing docker-compose.yml already supports these environment variables:
${EVALS_DB_PORT:-5432}:5432
for postgres${EVALS_REDIS_PORT:-6379}:6379
for redisTests confirm the new configuration is working correctly (connection attempts to port 5433 as expected).
Usage
After this change, users can:
pnpm evals
without port conflicts (uses new default ports).env.local
with desired port configurationFixes the Slack mention request for Docker port conflict resolution.
Important
Fixes Docker port conflicts for evals services by changing default PostgreSQL and Redis ports and updating environment files and documentation.
pnpm evals
to avoid conflicts..env.development
and.env.test
to use ports 5433 and 6380..env.local.example
for custom port configuration.README.md
with port configuration and conflict resolution guide.PORT-CONFLICT-SOLUTION.md
detailing implementation and benefits.This description was created by
for e2b413e. You can customize this summary. It will automatically update as commits are pushed.