chore: add health check docker + update release-it config

This commit is contained in:
Sonny
2024-07-03 01:01:27 +02:00
parent 9e1dcbb07d
commit de2cf5bd13
4 changed files with 15 additions and 5 deletions

View File

@@ -1,11 +1,15 @@
{ {
"hooks": { "hooks": {
"before:init": [ "before:init": [
"npm run lint" "pnpm format",
"pnpm lint"
] ]
}, },
"git": { "git": {
"commitMessage": "chore: release v${version}" "commitMessage": "chore: release v${version}",
"commit": true,
"tag": true,
"push": true
}, },
"github": { "github": {
"release": true "release": true

View File

@@ -19,6 +19,11 @@ services:
container_name: pgadmin container_name: pgadmin
image: dpage/pgadmin4:8.6 image: dpage/pgadmin4:8.6
restart: always restart: always
healthcheck:
test: ['CMD', 'wget', '-O', '-', 'http://localhost:80/misc/ping']
interval: 2s
timeout: 10s
retries: 30
environment: environment:
- PGADMIN_DEFAULT_EMAIL=myemail@gmail.com - PGADMIN_DEFAULT_EMAIL=myemail@gmail.com
- PGADMIN_DEFAULT_PASSWORD=a12345678 - PGADMIN_DEFAULT_PASSWORD=a12345678

View File

@@ -94,6 +94,7 @@ function TableUserRow({ user }: { user: UserWithRelationCount }) {
height={24} height={24}
alt={fullname} alt={fullname}
title={fullname} title={fullname}
referrerPolicy="no-referrer"
/> />
)} )}
<TextEllipsis>{fullname ?? '-'}</TextEllipsis> <TextEllipsis>{fullname ?? '-'}</TextEllipsis>

View File

@@ -9,8 +9,8 @@
"build": "node ace build", "build": "node ace build",
"dev": "node ace serve --watch", "dev": "node ace serve --watch",
"test": "node ace test", "test": "node ace test",
"lint": "eslint .", "lint": "eslint . --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write .", "format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
"typecheck": "tsc --noEmit", "typecheck": "tsc --noEmit",
"prepare": "husky", "prepare": "husky",
"release": "release-it" "release": "release-it"