- Auto-fix trailing spaces, curly braces, and indentation issues - Clean up boolean comparisons and code formatting - README automatically updated with new code injection tools: - browser_enable_debug_toolbar: Enable debug toolbar for client identification - browser_inject_custom_code: Inject custom JavaScript/CSS code - browser_list_injections: List all active code injections - browser_disable_debug_toolbar: Disable debug toolbar - browser_clear_injections: Remove custom code injections All linting checks now pass successfully.
31 lines
774 B
YAML
31 lines
774 B
YAML
services:
|
|
playwright-mcp:
|
|
build: .
|
|
container_name: playwright-mcp
|
|
restart: unless-stopped
|
|
environment:
|
|
- NODE_ENV=production
|
|
- HEADLESS=${HEADLESS:-false}
|
|
- DISPLAY=${DISPLAY:-}
|
|
command: ["--port", "8931", "--host", "0.0.0.0", "--browser", "chromium", "--no-sandbox"]
|
|
entrypoint: ["node", "cli.js"]
|
|
ports:
|
|
- "8931:8931"
|
|
labels:
|
|
caddy: ${DOMAIN}
|
|
caddy.reverse_proxy: "{{upstreams 8931}}"
|
|
networks:
|
|
- caddy
|
|
volumes:
|
|
- ./output:/tmp/playwright-mcp-output
|
|
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
|
healthcheck:
|
|
test: ["CMD", "sh", "-c", "nc -z localhost 8931"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
networks:
|
|
caddy:
|
|
external: true |