diff --git a/backend/src/modules/distribution/distribution.module.ts b/backend/src/modules/distribution/distribution.module.ts index bbd5508c..bf2393ae 100644 --- a/backend/src/modules/distribution/distribution.module.ts +++ b/backend/src/modules/distribution/distribution.module.ts @@ -17,6 +17,7 @@ import { NotificationModule } from '../notification/notification.module'; import { Project } from '../project/entities/project.entity'; import { ResponseCode } from '../response-code/entities/response-code.entity'; import { DocumentNumberingModule } from '../document-numbering/document-numbering.module'; +import { UserModule } from '../user/user.module'; @Module({ imports: [ @@ -29,6 +30,7 @@ import { DocumentNumberingModule } from '../document-numbering/document-numberin BullModule.registerQueue({ name: QUEUE_DISTRIBUTION }), NotificationModule, DocumentNumberingModule, + UserModule, ], providers: [ DistributionService, diff --git a/specs/04-Infrastructure-OPS/04-00-docker-compose/QNAP/service/docker-compose.yml b/specs/04-Infrastructure-OPS/04-00-docker-compose/QNAP/service/docker-compose.yml index 6bfc3c3a..f1b33aaf 100644 --- a/specs/04-Infrastructure-OPS/04-00-docker-compose/QNAP/service/docker-compose.yml +++ b/specs/04-Infrastructure-OPS/04-00-docker-compose/QNAP/service/docker-compose.yml @@ -131,7 +131,7 @@ services: # ---------------------------------------------------------------- qdrant: <<: [*restart_policy, *default_logging] - image: qdrant/qdrant:v1.7.0 + image: qdrant/qdrant:v1.16.1 container_name: qdrant deploy: resources: @@ -153,11 +153,12 @@ services: volumes: - '/share/np-dms/services/qdrant/storage:/qdrant/storage' 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 timeout: 10s retries: 3 - start_period: 30s + start_period: 40s # mkdir -p /share/np-dms/services/qdrant/storage # chown -R 100:101 /share/np-dms/services/qdrant/storage