Skip to content

Standardize port mapping for optional protocol interfaces - #132

Merged
makr-code merged 5 commits into
mainfrom
copilot/clean-port-mapping-docker
Dec 21, 2025
Merged

makr-code merged 5 commits into
mainfrom
copilot/clean-port-mapping-docker

Conversation

Copilot AI commented Dec 21, 2025 •

Copy link
Copy Markdown
Contributor

Multiple optional interfaces (MCP, MQTT, PostgreSQL Wire) lacked consistent port definitions and Docker configuration.

Changes

Port Standardization

  • Core ports (always exposed): 8080 (HTTP/GraphQL), 18765 (Wire Protocol), 4318 (Metrics)
  • Optional ports (build-flag gated): 1883/8883/8083 (MQTT), 5432 (PostgreSQL Wire), 3000 (MCP)

Docker Configuration

  • Dockerfile: Added documented EXPOSE statements for all ports with build flag requirements
  • docker-compose.yml: Comprehensive port mappings with commented optional protocols
  • docker-compose-vllm.yml: Updated port documentation

Documentation (1,000+ lines)

  • docs/deployment/PORT_REFERENCE.md: Complete reference with usage examples, deployment patterns, security practices, troubleshooting
  • docs/deployment/PORT_STANDARDIZATION.md: Migration guide from v1.2.0, backwards compatibility notes
  • Updated README.md, docker/README.md, docs/apis/OPTIONAL_PROTOCOLS.md with port tables

Example Usage

Minimal (core ports only):

ports:
  - "8080:8080"    # HTTP API
  - "18765:18765"  # Wire Protocol
  - "4318:4318"    # Metrics

Full deployment with optional protocols:

ports:
  # Core
  - "8080:8080"
  - "18765:18765"
  - "4318:4318"
  # Optional (requires build flags)
  - "1883:1883"    # MQTT plain (-DTHEMIS_ENABLE_MQTT=ON)
  - "8883:8883"    # MQTT TLS
  - "5432:5432"    # PostgreSQL Wire (-DTHEMIS_ENABLE_POSTGRES_WIRE=ON)
  - "3000:3000"    # MCP (-DTHEMIS_ENABLE_MCP=ON)

Security

Optional protocols require explicit build flags (opt-in by default). Documented preference for encrypted variants (8883 over 1883).

Original prompt

wir haben jetzt einige optionale schnittstellen (MCP usw.) hinzugefügt. Jetzt brauchen wir eins sauberes portmapping für alles (mit docker translate)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Dec 21, 2025
Copilot AI changed the title [WIP] Add clean port mapping for optional interfaces Standardize port mapping for optional protocol interfaces Dec 21, 2025
Copilot AI requested a review from makr-code December 21, 2025 20:37
@makr-code
makr-code marked this pull request as ready for review December 21, 2025 20:45
@makr-code
makr-code merged commit 780d443 into main Dec 21, 2025
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
makr-code added a commit that referenced this pull request Mar 18, 2026
feat(acceleration): remove silent k>kMaxK clamping in CUDA HNSW kernel (v1.8.0, Issue #132)
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.

2 participants