From 2d1c356199bcb3cbd544728957ccd4a8fcd748ea Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 30 Oct 2025 20:51:21 -0400 Subject: [PATCH] feat: add configurable web interface host port Add WEB_HTTP_PORT environment variable to configure the host port for the web interface (port 8888). Container still uses 8888 internally, but host port can be customized via .env file. --- .env.example | 4 ++++ docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index d37e415..5ca7a41 100644 --- a/.env.example +++ b/.env.example @@ -23,5 +23,9 @@ SEARCH_HTTP_PORT=8001 TRADE_HTTP_PORT=8002 GETPRICE_HTTP_PORT=8003 +# Web Interface Host Port (exposed on host machine) +# Container always uses 8888 internally +WEB_HTTP_PORT=8888 + # Agent Configuration AGENT_MAX_STEP=30 diff --git a/docker-compose.yml b/docker-compose.yml index d0ac2cd..33eb2f3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,5 +33,5 @@ services: - "${SEARCH_HTTP_PORT:-8001}:8001" - "${TRADE_HTTP_PORT:-8002}:8002" - "${GETPRICE_HTTP_PORT:-8003}:8003" - - "8888:8888" + - "${WEB_HTTP_PORT:-8888}:8888" restart: unless-stopped