Replace SSE price stream with WebSocket, use separate Docker port

- Replace SSE endpoint (/api/price/stream) with WebSocket (/api/price/ws)
  using ring-undertow-adapter's built-in WebSocket support
- Change Docker internal port from 4100 to 4101 to avoid conflicts with
  local dev (make run still uses 4100)
- Add free-port.sh utility script

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-23 21:32:19 +01:00
co-authored by Claude Opus 4.6
parent 6f20cd63c6
commit 9283826ac4
5 changed files with 62 additions and 60 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ FROM eclipse-temurin:21-jre-alpine
COPY --from=build /build/target/btcdata-standalone.jar /btcdata/btcdata-standalone.jar
EXPOSE 4100
ENV BTCDATA_PORT=4100
EXPOSE 4101
ENV BTCDATA_PORT=4101
ENV CORS_ORIGIN=http://localhost:4000
ENV JDBC_URL=jdbc:postgresql://postgres:5432/btcprod