code quality
This commit is contained in:
@@ -53,24 +53,24 @@ services:
|
||||
retries: 30
|
||||
start_period: 10s
|
||||
|
||||
# Website server (Next.js) - fully containerized
|
||||
# Website server (Next.js dev mode for faster e2e startup)
|
||||
website:
|
||||
image: gridpilot-website-e2e
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/website/Dockerfile.e2e
|
||||
args:
|
||||
- NODE_ENV=test
|
||||
- NEXT_PUBLIC_API_BASE_URL=http://api:3000
|
||||
working_dir: /app/apps/website
|
||||
image: node:20-bookworm
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- ./:/app
|
||||
- /Users/marcmintel/Projects/gridpilot/node_modules:/app/node_modules:ro
|
||||
environment:
|
||||
- NODE_ENV=test
|
||||
- NODE_ENV=development
|
||||
- NEXT_TELEMETRY_DISABLED=1
|
||||
- NEXT_PUBLIC_API_BASE_URL=http://api:3000
|
||||
- API_BASE_URL=http://api:3000
|
||||
- PORT=3000
|
||||
- DOCKER=true
|
||||
- NODE_OPTIONS=--max_old_space_size=4096
|
||||
ports:
|
||||
- "3100:3000"
|
||||
command: ["sh", "-lc", "echo '[website] Waiting for API...'; npm run dev --workspace=@gridpilot/website"]
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
@@ -82,7 +82,7 @@ services:
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 20
|
||||
start_period: 60s
|
||||
start_period: 20s
|
||||
|
||||
# Playwright test runner
|
||||
playwright:
|
||||
|
||||
Reference in New Issue
Block a user