From 1ad369727d7d2d6f321426e8733edcbcef7e3ae2 Mon Sep 17 00:00:00 2001 From: Bu5hm4nn Date: Sun, 29 Mar 2026 20:36:17 +0200 Subject: [PATCH] chore: change local development port from 8000 to 8100 - Update docker-compose.yml to map host port 8100 -> container 8000 - Update all Playwright test BASE_URL to port 8100 - Update .env.example with documentation about port mapping - This avoids conflicts with other services on port 8000 --- .env.example | 2 ++ docker-compose.yml | 2 +- tests/test_e2e_playwright.py | 2 +- tests/test_hedge_builder_playwright.py | 2 +- tests/test_overview_ltv_history_playwright.py | 2 +- tests/test_settings_validation_playwright.py | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index eedf51f..c5b0d68 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,7 @@ APP_HOST=0.0.0.0 APP_PORT=8000 +# For local development, docker-compose maps host port 8100 -> container port 8000 +# This avoids conflicts with other services on port 8000 REDIS_URL=redis://localhost:6379 CONFIG_PATH=/app/config/settings.yaml TURNSTILE_SITE_KEY=1x00000000000000000000AA diff --git a/docker-compose.yml b/docker-compose.yml index bf0b9da..ae579f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: dockerfile: Dockerfile image: vault-dash:dev ports: - - "8000:8000" + - "8100:8000" environment: APP_ENV: development APP_HOST: 0.0.0.0 diff --git a/tests/test_e2e_playwright.py b/tests/test_e2e_playwright.py index e72050c..6860815 100644 --- a/tests/test_e2e_playwright.py +++ b/tests/test_e2e_playwright.py @@ -4,7 +4,7 @@ from pathlib import Path from playwright.sync_api import expect, sync_playwright -BASE_URL = "http://127.0.0.1:8000" +BASE_URL = "http://127.0.0.1:8100" ARTIFACTS = Path("tests/artifacts") ARTIFACTS.mkdir(parents=True, exist_ok=True) diff --git a/tests/test_hedge_builder_playwright.py b/tests/test_hedge_builder_playwright.py index c06485f..22eccf5 100644 --- a/tests/test_hedge_builder_playwright.py +++ b/tests/test_hedge_builder_playwright.py @@ -5,7 +5,7 @@ from uuid import uuid4 from playwright.sync_api import expect, sync_playwright -BASE_URL = "http://127.0.0.1:8000" +BASE_URL = "http://127.0.0.1:8100" ARTIFACTS = Path("tests/artifacts") ARTIFACTS.mkdir(parents=True, exist_ok=True) diff --git a/tests/test_overview_ltv_history_playwright.py b/tests/test_overview_ltv_history_playwright.py index c9a2659..2a6d4a8 100644 --- a/tests/test_overview_ltv_history_playwright.py +++ b/tests/test_overview_ltv_history_playwright.py @@ -4,7 +4,7 @@ from pathlib import Path from playwright.sync_api import expect, sync_playwright -BASE_URL = "http://127.0.0.1:8000" +BASE_URL = "http://127.0.0.1:8100" ARTIFACTS = Path("tests/artifacts") ARTIFACTS.mkdir(parents=True, exist_ok=True) diff --git a/tests/test_settings_validation_playwright.py b/tests/test_settings_validation_playwright.py index d0e63da..b5e2bdf 100644 --- a/tests/test_settings_validation_playwright.py +++ b/tests/test_settings_validation_playwright.py @@ -2,7 +2,7 @@ from __future__ import annotations from playwright.sync_api import expect, sync_playwright -BASE_URL = "http://127.0.0.1:8000" +BASE_URL = "http://127.0.0.1:8100" def test_settings_reject_invalid_loan_amount_without_silent_zero_fallback() -> None: