test(e2e): make root docker-compose stack port-configurable
Some checks failed
ci / tests (push) Has been cancelled

Parameterize Matomo’s published port via MATOMO_PORT to avoid CI collisions,
update installer site URL accordingly, and adapt the root docker-compose E2E
test to run on a non-default port with explicit environment injection.

https://chatgpt.com/share/694af650-a484-800f-ace7-0a634d57b0a0
This commit is contained in:
Kevin Veen-Birkenbach
2025-12-23 21:16:51 +01:00
parent 7fa8b580d2
commit 1f448f4457
2 changed files with 39 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ services:
db:
condition: service_healthy
ports:
- "8080:80"
- "${MATOMO_PORT:-8080}:80"
environment:
MATOMO_DATABASE_HOST: db
MATOMO_DATABASE_ADAPTER: mysql
@@ -57,7 +57,7 @@ services:
# Installer flow values
MATOMO_SITE_NAME: "Matomo (docker-compose)"
MATOMO_SITE_URL: "http://127.0.0.1:8080"
MATOMO_SITE_URL: "http://127.0.0.1:${MATOMO_PORT:-8080}"
MATOMO_TIMEZONE: "Germany - Berlin"
# Optional stability knobs