Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pmoves/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ services:
supabase-db:
condition: service_healthy
ports:
- ${SUPABASE_REALTIME_PORT:-4000}:4000
- ${SUPABASE_REALTIME_PORT:-4010}:4000
Comment thread
coderabbitai[bot] marked this conversation as resolved.
networks:
- pmoves_api
- pmoves_data
Expand Down
2 changes: 1 addition & 1 deletion pmoves/docs/operations/PORT_REGISTRY.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Central registry of all service ports to prevent conflicts and ensure consistenc
# env.tier-supabase
SUPABASE_POSTGREST_PORT=3010 # NOT 3000 (Grafana conflict)
SUPABASE_GOTRUE_PORT=9999
SUPABASE_REALTIME_PORT=4000 # Conflicts with TensorZero UI (use profile separation)
SUPABASE_REALTIME_PORT=4010 # Remapped from 4000 to avoid TensorZero UI collision
SUPABASE_STORAGE_PORT=5000
SUPABASE_KONG_PROXY_PORT=8000
SUPABASE_KONG_ADMIN_PORT=8001
Expand Down
2 changes: 1 addition & 1 deletion pmoves/env.supabase
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@ SUPABASE_URI_ALLOW_LIST=
# Supabase ports
SUPABASE_DB_PORT=54322
SUPABASE_STORAGE_PORT=5000
SUPABASE_REALTIME_PORT=4000
SUPABASE_REALTIME_PORT=4010
2 changes: 1 addition & 1 deletion pmoves/env.tier-supabase.example
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ SUPABASE_DB_PORT=54322
SUPABASE_STUDIO_PORT=54323
SUPABASE_GOTRUE_PORT=9999
SUPABASE_POSTGREST_PORT=3000
SUPABASE_REALTIME_PORT=4000
SUPABASE_REALTIME_PORT=4010
SUPABASE_STORAGE_PORT=5000
SUPABASE_KONG_PROXY_PORT=8000
SUPABASE_KONG_ADMIN_PORT=8001
Expand Down
8 changes: 5 additions & 3 deletions pmoves/tests/smoke/test_supabase_realtime_tenant.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@

COMPOSE_FILE = PMOVES_DIR / "docker-compose.yml"

SUPABASE_REALTIME_PORT = os.getenv("SUPABASE_REALTIME_PORT", "4010")

SUPABASE_REALTIME_URL = os.getenv(
"SUPABASE_REALTIME_URL",
"ws://localhost:4000/socket/websocket"
f"ws://localhost:{SUPABASE_REALTIME_PORT}/socket/websocket"
)
SUPABASE_POSTGREST_URL = os.getenv(
"SUPABASE_POSTGREST_URL",
Expand Down Expand Up @@ -132,7 +134,7 @@ def test_realtime_has_seed_self_host_enabled() -> None:
@pytest.mark.smoke
def test_realtime_jwt_secret_configured() -> None:
"""Verify Realtime JWT secret is configured."""
output = grep_context(COMPOSE_FILE, r"supabase-realtime:", after=30)
output = grep_context(COMPOSE_FILE, r"supabase-realtime:", after=55)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
if not output:
pytest.skip("supabase-realtime service not found in docker-compose.yml")

Expand Down Expand Up @@ -203,7 +205,7 @@ def test_realtime_database_schema_exists() -> None:
@pytest.mark.smoke
def test_realtime_healthcheck_configured() -> None:
"""Verify Realtime has a healthcheck configured in docker-compose."""
output = grep_context(COMPOSE_FILE, r"supabase-realtime:", after=30)
output = grep_context(COMPOSE_FILE, r"supabase-realtime:", after=55)
assert output, "supabase-realtime service not found"

assert "healthcheck:" in output, (
Expand Down
4 changes: 3 additions & 1 deletion pmoves/tests/smoke/test_supabase_selfhosted.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
"SUPABASE_POSTGREST_URL",
"http://localhost:3010/rest/v1/"
)
SUPABASE_REALTIME_PORT = os.getenv("SUPABASE_REALTIME_PORT", "4010")

SUPABASE_REALTIME_URL = os.getenv(
"SUPABASE_REALTIME_URL",
"ws://localhost:4000/socket/websocket"
f"ws://localhost:{SUPABASE_REALTIME_PORT}/socket/websocket"
)
SUPABASE_DB_HOST = os.getenv("SUPABASE_DB_HOST", "localhost")
SUPABASE_DB_PORT = os.getenv("SUPABASE_DB_PORT", "5432")
Expand Down
Loading