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:
|
services:
|
||||||
traefik:
|
traefik:
|
||||||
image: traefik:v3.7.8
|
image: traefik:v3.7.8
|
||||||
|
pull_policy: missing
|
||||||
command: |
|
command: |
|
||||||
--api.insecure=true
|
--api.insecure=true
|
||||||
--providers.docker
|
--providers.docker
|
||||||
@@ -12,6 +13,7 @@ services:
|
|||||||
|
|
||||||
whoami:
|
whoami:
|
||||||
image: traefik/whoami:v1.11.0
|
image: traefik/whoami:v1.11.0
|
||||||
|
pull_policy: missing
|
||||||
labels:
|
labels:
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
traefik.http.routers.whoami.rule: Host(`whoami.127.0.0.1.sslip.io`)
|
traefik.http.routers.whoami.rule: Host(`whoami.127.0.0.1.sslip.io`)
|
||||||
|
|||||||
+3
-2
@@ -5,9 +5,10 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"down": "docker compose -f docker-compose.e2e.yml down",
|
"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",
|
"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": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
webServer: {
|
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',
|
url: 'http://tinyauth.127.0.0.1.sslip.io/api/healthz',
|
||||||
reuseExistingServer: true,
|
reuseExistingServer: true,
|
||||||
timeout: 5 * 60 * 1000,
|
timeout: 5 * 60 * 1000,
|
||||||
|
|||||||
Reference in New Issue
Block a user