From c071e64a7ec7d5c0a5dfa77ceb436d807903e289 Mon Sep 17 00:00:00 2001 From: Zack Pollard Date: Fri, 1 Jul 2022 16:20:04 +0100 Subject: [PATCH] infra: switch port to 3003 for machine learning container (#290) * infra: switch port to 3003 for machine learning container fixes #289 * Changed port of machine-learning-endpoint to match with new port Co-authored-by: Alex Tran --- machine-learning/src/main.ts | 2 +- .../src/processors/metadata-extraction.processor.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/machine-learning/src/main.ts b/machine-learning/src/main.ts index 5591e76fbd..5199e4b719 100644 --- a/machine-learning/src/main.ts +++ b/machine-learning/src/main.ts @@ -5,7 +5,7 @@ import { Logger } from '@nestjs/common'; async function bootstrap() { const app = await NestFactory.create(AppModule); - await app.listen(3001, () => { + await app.listen(3003, () => { if (process.env.NODE_ENV == 'development') { Logger.log( 'Running Immich Machine Learning in DEVELOPMENT environment', diff --git a/server/apps/microservices/src/processors/metadata-extraction.processor.ts b/server/apps/microservices/src/processors/metadata-extraction.processor.ts index 890c673eb9..4d6a70186f 100644 --- a/server/apps/microservices/src/processors/metadata-extraction.processor.ts +++ b/server/apps/microservices/src/processors/metadata-extraction.processor.ts @@ -93,7 +93,7 @@ export class MetadataExtractionProcessor { async tagImage(job: Job) { const { asset }: { asset: AssetEntity } = job.data; - const res = await axios.post('http://immich-machine-learning:3001/image-classifier/tag-image', { + const res = await axios.post('http://immich-machine-learning:3003/image-classifier/tag-image', { thumbnailPath: asset.resizePath, }); @@ -113,7 +113,7 @@ export class MetadataExtractionProcessor { try { const { asset }: { asset: AssetEntity } = job.data; - const res = await axios.post('http://immich-machine-learning:3001/object-detection/detect-object', { + const res = await axios.post('http://immich-machine-learning:3003/object-detection/detect-object', { thumbnailPath: asset.resizePath, });