fix(docker-compose): serve buttercup-ui on 31323 internally (#549)

The scheduler/task-server competition API URL is
http://buttercup-ui:31323, but the UI listened on the container-internal
port 1323 (31323 was only the host-published mapping). Inside the
compose network, scheduler -> http://buttercup-ui:31323 was refused,
so POV/patch/bundle submissions failed with "Failed to submit POV"
even though the host-side e2e.sh task POST (localhost:31323) worked.

Set BUTTERCUP_UI_PORT=31323 and map 31323:31323 so host, internal,
and the *_COMPETITION_API_URL env all use one consistent port.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Riccardo Schirone
2026-05-18 15:53:48 +02:00
committed by GitHub
parent 85ccf9b9fe
commit cc94bdf05b
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ services:
dockerfile: ./orchestrator/Dockerfile
command: ["buttercup-ui"]
ports:
- "127.0.0.1:31323:1323"
- "127.0.0.1:31323:31323"
env_file:
- env.dev.compose
- .env
+4
View File
@@ -90,6 +90,10 @@ TRACED_VULNERABILITIES_TASK_TIMEOUT_MS=120000
BUTTERCUP_UI_HOST=buttercup-ui
BUTTERCUP_UI_EXTERNAL_HOST=buttercup-ui
# Serve on 31323 internally too, so container-to-container URLs
# (BUTTERCUP_*_COMPETITION_API_URL=http://buttercup-ui:31323) and the
# host-published port both use one consistent port.
BUTTERCUP_UI_PORT=31323
BUTTERCUP_UI_CRS_BASE_URL="http://task-server:8000"
BUTTERCUP_UI_STORAGE_DIR="/tmp/buttercup-ui"
BUTTERCUP_UI_LOG_LEVEL="info"