fix: Jaeger image tag and remap PG/Valkey ports to avoid host conflicts

jaegertracing/jaeger:2 is not a valid Docker Hub tag — pin to 2.6.0.
Remap PG to 5433 and Valkey to 6380 to avoid conflicts with existing
host containers (sage-postgres, mosaic-valkey on 5432/6379).
Ports are env-configurable via PG_HOST_PORT / VALKEY_HOST_PORT.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 21:05:30 -05:00
parent bf2cb3a271
commit 8a7455db65
2 changed files with 11 additions and 7 deletions

View File

@@ -1,8 +1,12 @@
# Database # Database (port 5433 avoids conflict with host PostgreSQL)
DATABASE_URL=postgresql://mosaic:mosaic@localhost:5432/mosaic DATABASE_URL=postgresql://mosaic:mosaic@localhost:5433/mosaic
# Valkey (Redis-compatible) # Valkey (Redis-compatible, port 6380 avoids conflict with host Redis/Valkey)
VALKEY_URL=redis://localhost:6379 VALKEY_URL=redis://localhost:6380
# Docker Compose host port overrides (optional)
# PG_HOST_PORT=5433
# VALKEY_HOST_PORT=6380
# OpenTelemetry # OpenTelemetry
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318

View File

@@ -2,7 +2,7 @@ services:
postgres: postgres:
image: pgvector/pgvector:pg17 image: pgvector/pgvector:pg17
ports: ports:
- '5432:5432' - '${PG_HOST_PORT:-5433}:5432'
environment: environment:
POSTGRES_USER: mosaic POSTGRES_USER: mosaic
POSTGRES_PASSWORD: mosaic POSTGRES_PASSWORD: mosaic
@@ -18,7 +18,7 @@ services:
valkey: valkey:
image: valkey/valkey:8-alpine image: valkey/valkey:8-alpine
ports: ports:
- '6379:6379' - '${VALKEY_HOST_PORT:-6380}:6379'
volumes: volumes:
- valkey_data:/data - valkey_data:/data
healthcheck: healthcheck:
@@ -39,7 +39,7 @@ services:
condition: service_started condition: service_started
jaeger: jaeger:
image: jaegertracing/jaeger:2 image: jaegertracing/jaeger:2.6.0
ports: ports:
- '16686:16686' # Jaeger UI - '16686:16686' # Jaeger UI
- '4319:4317' # Jaeger OTLP gRPC (internal, collector forwards here) - '4319:4317' # Jaeger OTLP gRPC (internal, collector forwards here)