Skip to content

chore(docker): make host ports customizable via environment variables#452

Open
ducconit wants to merge 1 commit intonextlevelbuilder:mainfrom
ducconit:chore/configurable-docker-ports
Open

chore(docker): make host ports customizable via environment variables#452
ducconit wants to merge 1 commit intonextlevelbuilder:mainfrom
ducconit:chore/configurable-docker-ports

Conversation

@ducconit
Copy link

🎯 Changes

This pull request modifies the Docker Compose configurations to allow host ports to be configurable via environment variables instead of being hardcoded.

  • Introduced ${JAEGER_UI_PORT:-16686}, ${OTLP_GRPC_PORT:-4317}, and ${OTLP_HTTP_PORT:-4318} for observability services.
  • Introduced ${REDIS_PORT:-6379} for the Redis service.

💡 Motivation

Hardcoded port mappings can often lead to port conflicts on host machines, especially in environments running multiple stack instances or standard local services. This standardizes the compose overlays to match the current pattern, making deployments much more flexible and adaptable avoiding conflicts out-of-the-box.

✅ Checklist

  • Tested locally with default environment variables.
  • Verified backward compatibility with previous defaults.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant