690517:2048 204 and 302 refactor #09
This commit is contained in:
@@ -17,6 +17,7 @@ import { NotificationModule } from '../notification/notification.module';
|
|||||||
import { Project } from '../project/entities/project.entity';
|
import { Project } from '../project/entities/project.entity';
|
||||||
import { ResponseCode } from '../response-code/entities/response-code.entity';
|
import { ResponseCode } from '../response-code/entities/response-code.entity';
|
||||||
import { DocumentNumberingModule } from '../document-numbering/document-numbering.module';
|
import { DocumentNumberingModule } from '../document-numbering/document-numbering.module';
|
||||||
|
import { UserModule } from '../user/user.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -29,6 +30,7 @@ import { DocumentNumberingModule } from '../document-numbering/document-numberin
|
|||||||
BullModule.registerQueue({ name: QUEUE_DISTRIBUTION }),
|
BullModule.registerQueue({ name: QUEUE_DISTRIBUTION }),
|
||||||
NotificationModule,
|
NotificationModule,
|
||||||
DocumentNumberingModule,
|
DocumentNumberingModule,
|
||||||
|
UserModule,
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
DistributionService,
|
DistributionService,
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ services:
|
|||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
qdrant:
|
qdrant:
|
||||||
<<: [*restart_policy, *default_logging]
|
<<: [*restart_policy, *default_logging]
|
||||||
image: qdrant/qdrant:v1.7.0
|
image: qdrant/qdrant:v1.16.1
|
||||||
container_name: qdrant
|
container_name: qdrant
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
@@ -153,11 +153,12 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- '/share/np-dms/services/qdrant/storage:/qdrant/storage'
|
- '/share/np-dms/services/qdrant/storage:/qdrant/storage'
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ['CMD', 'curl', '-f', 'http://localhost:6333/health']
|
# qdrant image ไม่มี curl — ใช้ bash /dev/tcp TCP check แทน (ADR-016)
|
||||||
|
test: ['CMD-SHELL', 'bash -c "exec 3<>/dev/tcp/localhost/6333 && echo -e \"GET /healthz HTTP/1.0\r\nHost: localhost\r\n\r\n\" >&3 && grep -q \"200 OK\" <&3"']
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 30s
|
start_period: 40s
|
||||||
|
|
||||||
# mkdir -p /share/np-dms/services/qdrant/storage
|
# mkdir -p /share/np-dms/services/qdrant/storage
|
||||||
# chown -R 100:101 /share/np-dms/services/qdrant/storage
|
# chown -R 100:101 /share/np-dms/services/qdrant/storage
|
||||||
|
|||||||
Reference in New Issue
Block a user