feat: add netcheck command for debugging

This commit is contained in:
Stavros
2026-07-16 18:21:18 +03:00
parent 423ad7b7a0
commit d8ee3e77f8
3 changed files with 6 additions and 3 deletions
+2
View File
@@ -1,6 +1,7 @@
services:
traefik:
image: traefik:v3.7.8
pull_policy: missing
command: |
--api.insecure=true
--providers.docker
@@ -12,6 +13,7 @@ services:
whoami:
image: traefik/whoami:v1.11.0
pull_policy: missing
labels:
traefik.enable: true
traefik.http.routers.whoami.rule: Host(`whoami.127.0.0.1.sslip.io`)
+3 -2
View File
@@ -5,9 +5,10 @@
"main": "index.js",
"scripts": {
"down": "docker compose -f docker-compose.e2e.yml down",
"up": "docker compose -f docker-compose.e2e.yml up --build --pull=always --force-recreate --remove-orphans",
"up": "docker compose -f docker-compose.e2e.yml up --build --force-recreate --remove-orphans",
"test": "playwright test",
"report": "playwright show-report"
"report": "playwright show-report",
"netcheck": "curl http://tinyauth.127.0.0.1.sslip.io/api/healthz && curl localhost"
},
"keywords": [],
"author": "",
+1 -1
View File
@@ -35,7 +35,7 @@ export default defineConfig({
},
],
webServer: {
command: 'docker compose -f docker-compose.e2e.yml up --build --pull=always --force-recreate --remove-orphans',
command: 'pnpm run up && pnpm run netcheck',
url: 'http://tinyauth.127.0.0.1.sslip.io/api/healthz',
reuseExistingServer: true,
timeout: 5 * 60 * 1000,