From 1cc3f72a62d374db021301d343724d155c1f7952 Mon Sep 17 00:00:00 2001 From: Shane Maynard Date: Fri, 31 Jul 2026 06:17:58 -0400 Subject: [PATCH] Allow CI container tests beside production --- docker-compose.yml | 2 +- test/container-startup.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 83d9da1..3e38487 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ services: db: condition: service_healthy # Nginx Proxy Manager routes https://roast.srmr.xyz to this host port. - ports: ["8090:8090"] + ports: ["${APP_PORT:-8090}:8090"] restart: unless-stopped db: image: postgres:16-alpine diff --git a/test/container-startup.test.js b/test/container-startup.test.js index 683e4b8..56a6d0b 100644 --- a/test/container-startup.test.js +++ b/test/container-startup.test.js @@ -31,7 +31,7 @@ test("Docker image starts against PostgreSQL and applies migrations", async (t) const envFile = path.join(temp, "compose.env"); await writeFile( envFile, - `POSTGRES_PASSWORD=container-test-password\nBOOTSTRAP_SETUP_TOKEN=\nPI_AGENT_CONFIG_DIR=${agentDir}\n`, + `POSTGRES_PASSWORD=container-test-password\nBOOTSTRAP_SETUP_TOKEN=\nPI_AGENT_CONFIG_DIR=${agentDir}\nAPP_PORT=18090\n`, ); const project = `roastplanner${Date.now()}`; const compose = (args, options = {}) =>