mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-17 23:41:11 +00:00
feat: add netcheck command for debugging
This commit is contained in:
@@ -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
@@ -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": "",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user