diff --git a/.docker/compose/docker-compose.playwright-ci.yml b/.docker/compose/docker-compose.playwright-ci.yml index 0a0e4606..94e7d5a3 100644 --- a/.docker/compose/docker-compose.playwright-ci.yml +++ b/.docker/compose/docker-compose.playwright-ci.yml @@ -85,6 +85,7 @@ services: - playwright_data:/app/data - playwright_caddy_data:/data - playwright_caddy_config:/config + - /var/run/docker.sock:/var/run/docker.sock:ro # For container discovery in tests healthcheck: test: ["CMD", "curl", "-sf", "http://localhost:8080/api/v1/health"] interval: 5s @@ -111,6 +112,7 @@ services: volumes: - playwright_crowdsec_data:/var/lib/crowdsec/data - playwright_crowdsec_config:/etc/crowdsec + - /var/run/docker.sock:/var/run/docker.sock:ro # For container discovery in tests healthcheck: test: ["CMD", "cscli", "version"] interval: 10s diff --git a/.docker/compose/docker-compose.playwright-local.yml b/.docker/compose/docker-compose.playwright-local.yml index a752693f..735fe6b6 100644 --- a/.docker/compose/docker-compose.playwright-local.yml +++ b/.docker/compose/docker-compose.playwright-local.yml @@ -49,6 +49,8 @@ services: # True tmpfs for E2E test data - fresh on every run, in-memory only # mode=1777 allows any user to write (container runs as non-root) - /app/data:size=100M,mode=1777 + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro # For container discovery in tests healthcheck: test: ["CMD-SHELL", "curl -fsS http://localhost:8080/api/v1/health || exit 1"] interval: 5s