Files
vitest/test/browser/docker-compose.yaml
2026-06-24 09:10:23 +02:00

25 lines
849 B
YAML

services:
playwright:
image: mcr.microsoft.com/playwright:v1.61.0-noble
command: /bin/sh -c "npx -y [email protected] run-server --port 6677 --host 0.0.0.0"
init: true
ipc: host
user: pwuser
ports:
- '6677:6677'
# This setup employs simpler and robust `network_mode: host` instead of port mapping.
# This supports debug inspector, which can only bind to 127.0.0.1.
# `connectOptions.exposeNetwork: '<loopback>'` is also not needed for this setup.
# Note that `network_mode: host` is supported only on Linux Docker.
# Run it by:
# pnpm run docker up playwright-host
playwright-host:
image: mcr.microsoft.com/playwright:v1.61.0-noble
command: /bin/sh -c "npx -y [email protected] run-server --port 6677"
init: true
ipc: host
user: pwuser
network_mode: host
profiles: [host]