690517:2048 204 and 302 refactor #09
CI / CD Pipeline / build (push) Successful in 5m5s
CI / CD Pipeline / deploy (push) Successful in 3m12s

This commit is contained in:
2026-05-17 20:48:45 +07:00
parent 89bbd5ecd7
commit bf997d85ac
2 changed files with 6 additions and 3 deletions
@@ -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