chore(e2e-testing): 🔧 Update E2E Docker Compose and Vite configs for consistent testing environments

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
autocommit 2026-06-10 17:57:48 -07:00
parent c9ffc1fd44
commit aef2cd261b
12 changed files with 106 additions and 106 deletions

View file

@ -8,7 +8,7 @@
# docker compose -f docker-compose.e2e.yml up --build --abort-on-container-exit
# docker compose -f docker-compose.e2e.yml down -v
#
# Note: NPM_REGISTRY environment variable should be set (defaults to http://npm.black.local/)
# Note: NPM_REGISTRY environment variable should be set (defaults to http://npm.black.lan/)
#
# =============================================================================
@ -41,13 +41,13 @@ services:
context: .
dockerfile: e2e/Dockerfile.api
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: test
DATABASE_HOST: postgres
@ -81,13 +81,13 @@ services:
context: .
dockerfile: e2e/Dockerfile.frontend
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: test
VITE_API_URL: http://api:3000
@ -130,13 +130,13 @@ services:
context: .
dockerfile: e2e/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
CI: "true"
NODE_ENV: test

View file

@ -9,7 +9,7 @@
# docker compose -f docker-compose.e2e.yml up --build --abort-on-container-exit
# docker compose -f docker-compose.e2e.yml down -v
#
# Note: NPM_REGISTRY defaults to http://npm.black.local/
# Note: NPM_REGISTRY defaults to http://npm.black.lan/
#
# =============================================================================
@ -42,13 +42,13 @@ services:
context: .
dockerfile: e2e/Dockerfile.api
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: test
PORT: 3010
@ -81,13 +81,13 @@ services:
context: .
dockerfile: e2e/Dockerfile.frontend
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: test
VITE_API_URL: http://api:3010
@ -123,13 +123,13 @@ services:
context: .
dockerfile: e2e/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
CI: "true"
NODE_ENV: test

View file

@ -48,9 +48,9 @@ services:
dockerfile: e2e/Dockerfile.api
network: host
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
environment:
NODE_ENV: test
PORT: 3001
@ -89,9 +89,9 @@ services:
dockerfile: e2e/Dockerfile.frontend
network: host
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
environment:
NODE_ENV: test
VITE_API_URL: http://api:3001
@ -114,9 +114,9 @@ services:
dockerfile: e2e/Dockerfile.e2e
network: host
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
environment:
CI: "true"
BASE_URL: http://frontend:5201

View file

@ -48,9 +48,9 @@ services:
dockerfile: e2e/Dockerfile.api
network: host
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
environment:
NODE_ENV: test
PORT: 3001
@ -89,9 +89,9 @@ services:
dockerfile: e2e/Dockerfile.frontend
network: host
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
environment:
NODE_ENV: test
VITE_API_URL: http://api:3001
@ -114,9 +114,9 @@ services:
dockerfile: e2e/Dockerfile.e2e
network: host
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
environment:
CI: "true"
BASE_URL: http://frontend:5201

View file

@ -21,7 +21,7 @@
services:
# Platform Admin Frontend (Vite dev server)
# Uses host network for VPN access to forge.black.local during build
# Uses host network for VPN access to forge.black.lan during build
# Expects real platform-admin API running on localhost:3011
platform-admin:
build:
@ -31,8 +31,8 @@ services:
args:
FORGEJO_NPM_TOKEN: ${FORGEJO_NPM_TOKEN:-64823a8fe6290a085fdc143dd53915cda151876e}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
network_mode: host
environment:
- VITE_API_URL=http://localhost:3011
@ -46,7 +46,7 @@ services:
start_period: 30s
# Marketplace Frontend (Vite dev server)
# Uses host network for VPN access to forge.black.local during build
# Uses host network for VPN access to forge.black.lan during build
# Expects real marketplace API running on localhost:3001
marketplace:
build:
@ -56,8 +56,8 @@ services:
args:
FORGEJO_NPM_TOKEN: ${FORGEJO_NPM_TOKEN:-64823a8fe6290a085fdc143dd53915cda151876e}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
network_mode: host
environment:
- VITE_API_URL=http://localhost:3001

View file

@ -61,15 +61,15 @@ services:
context: ../../../.. # Build from workspace root (4 levels up)
dockerfile: codebase/features/merchant/backend-api/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
# VPN host entry for Forgejo registry (pnpm install from forge.black.local)
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
# VPN host entry for Forgejo registry (pnpm install from forge.black.lan)
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
# Runtime extra_hosts (for container networking)
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: test
PORT: 3020
@ -108,13 +108,13 @@ services:
context: ../../../.. # Build from workspace root (4 levels up)
dockerfile: codebase/features/merchant/backend-api/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
CI: "true"
NODE_ENV: test

View file

@ -65,15 +65,15 @@ services:
context: ../../../..
dockerfile: features/analytics/backend-api/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
# VPN host entry for Forgejo registry - required during build for pnpm install
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
# Runtime extra_hosts (for container networking)
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
# Use production mode to disable TypeORM synchronize (sync conflicts with TimescaleDB hypertables)
NODE_ENV: production
@ -109,13 +109,13 @@ services:
context: ../../../..
dockerfile: features/platform-admin/backend-api/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: production
PORT: 3011
@ -155,13 +155,13 @@ services:
context: ../../../..
dockerfile: features/conversation-assistant/backend-api/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: production
PORT: 3100
@ -193,13 +193,13 @@ services:
context: ../../../..
dockerfile: features/marketplace/backend-api/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: production
PORT: 3001
@ -241,15 +241,15 @@ services:
context: ../../../..
dockerfile: features/platform-admin/frontend-admin/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
# VPN host entry for Forgejo registry - required during build for pnpm install
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
# Runtime extra_hosts (for container networking)
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
# Backend service URLs for Vite proxy
VITE_API_URL: http://platform-admin-api:3011

View file

@ -17,7 +17,7 @@ export default defineConfig({
strictPort: true,
open: false,
hmr: {
host: process.env.VITE_HMR_HOST || 'data.quinn.apricot.local',
host: process.env.VITE_HMR_HOST || 'data.quinn.apricot.lan',
// clientPort 443: browser connects to nginx (port 443) which proxies /@vite/ WebSocket
// to this dev server on 5111. Vite itself does NOT open a separate server on 443.
clientPort: parseInt(process.env.VITE_HMR_CLIENT_PORT || '443', 10),

View file

@ -54,13 +54,13 @@ services:
context: ../../../..
dockerfile: features/conversation-assistant/backend-api/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: production
PORT: 3100
@ -92,13 +92,13 @@ services:
context: ../../../..
dockerfile: features/platform-content-tools/frontend-dev/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
extra_hosts:
- "npm.black.local:10.0.0.11"
- "forge.black.local:10.0.0.11"
- "npm.black.lan:10.0.0.11"
- "forge.black.lan:10.0.0.11"
environment:
NODE_ENV: production
VITE_CONVERSATION_ASSISTANT_URL: http://conversation-assistant-api:3100

View file

@ -43,7 +43,7 @@ services:
context: .
dockerfile: e2e/Dockerfile.api
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
environment:
NODE_ENV: test
PORT: 3014
@ -81,7 +81,7 @@ services:
context: .
dockerfile: e2e/Dockerfile.frontend-admin
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
environment:
NODE_ENV: test
VITE_API_URL: http://api:3014
@ -103,7 +103,7 @@ services:
context: .
dockerfile: e2e/Dockerfile.e2e-admin
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
environment:
CI: "true"
BASE_URL: http://frontend-admin:4004/admin/seo

View file

@ -43,7 +43,7 @@ services:
context: .
dockerfile: e2e/Dockerfile.api
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
environment:
NODE_ENV: test
PORT: 3014
@ -81,7 +81,7 @@ services:
context: .
dockerfile: e2e/Dockerfile.frontend
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
environment:
NODE_ENV: test
VITE_API_URL: http://api:3014
@ -103,7 +103,7 @@ services:
context: .
dockerfile: e2e/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
environment:
CI: "true"
BASE_URL: http://frontend:4003

View file

@ -26,7 +26,7 @@ services:
context: .
dockerfile: e2e/Dockerfile.api
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
environment:
NODE_ENV: test
PORT: 5000
@ -57,7 +57,7 @@ services:
context: .
dockerfile: e2e/Dockerfile.frontend
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
environment:
NODE_ENV: test
VITE_API_URL: http://api:5000
@ -80,7 +80,7 @@ services:
context: .
dockerfile: e2e/Dockerfile.e2e
args:
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.local/}
NPM_REGISTRY: ${NPM_REGISTRY:-http://npm.black.lan/}
environment:
CI: "true"
BASE_URL: http://frontend:3000