Files
APAW/docker/docker-compose.yml
¨NW¨ e074612046 feat: add web testing infrastructure
- Docker configurations for Playwright MCP (no host pollution)
- Visual regression testing with pixelmatch
- Link checking for 404/500 errors
- Console error detection with Gitea issue creation
- Form testing capabilities
- /web-test and /web-test-fix commands
- web-testing skill documentation
- Reorganize project structure (docker/, scripts/, tests/)
- Update orchestrator model to ollama-cloud/glm-5

Structure:
- docker/ - Docker configurations (moved from archive)
- scripts/ - Utility scripts
- tests/ - Test suite with visual, console, links testing
- .kilo/commands/ - /web-test and /web-test-fix commands
- .kilo/skills/ - web-testing skill

Issues: #58 #60 #62
2026-04-07 08:55:24 +01:00

55 lines
1.2 KiB
YAML

version: '3.8'
services:
playwright-mcp:
build:
context: .
dockerfile: Dockerfile.playwright
container_name: playwright-mcp
ports:
- "8931:8931"
volumes:
- ./:/app
- /app/node_modules
environment:
- PLAYWRIGHT_MCP_BROWSER=chromium
- PLAYWRIGHT_MCP_HEADLESS=false
- PLAYWRIGHT_MCP_NO_SANDBOX=true
- PLAYWRIGHT_MCP_PORT=8931
- PLAYWRIGHT_MCP_HOST=0.0.0.0
- DISPLAY=${DISPLAY:-:0}
restart: unless-stopped
shm_size: '2gb'
ipc: host
security_opt:
- seccomp:unconfined
# For visual debugging (headed mode)
playwright-headed:
image: mcr.microsoft.com/playwright:v1.58.2-noble
container_name: playwright-headed
ports:
- "8932:8931"
volumes:
- ./:/app
environment:
- DISPLAY=$DISPLAY
command: >
npx @playwright/mcp@latest
--browser chromium
--port 8931
--host 0.0.0.0
profiles:
- debug
# For running tests locally
test-runner:
image: mcr.microsoft.com/playwright:v1.58.2-noble
container_name: playwright-test
volumes:
- ./:/app
working_dir: /app
command: npx playwright test
profiles:
- test