From 1e97407025a538efc5563354a619922df4854ba6 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Fri, 28 Apr 2023 14:21:01 -0400 Subject: [PATCH] chore: microservices debugger (#2345) * chore: microservices debugger * Update launch.json --- .vscode/launch.json | 9 +++++++++ docker/docker-compose.dev.yml | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 086f3c694c..7a88b7f3e1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,6 +9,15 @@ "name": "Immich Server", "remoteRoot": "/usr/src/app", "localRoot": "${workspaceFolder}/server" + }, + { + "type": "node", + "request": "attach", + "restart": true, + "port": 9231, + "name": "Immich Microservices", + "remoteRoot": "/usr/src/app", + "localRoot": "${workspaceFolder}/server" } ] } diff --git a/docker/docker-compose.dev.yml b/docker/docker-compose.dev.yml index 19864b963d..6646c93bd7 100644 --- a/docker/docker-compose.dev.yml +++ b/docker/docker-compose.dev.yml @@ -53,13 +53,15 @@ services: context: ../server dockerfile: Dockerfile target: builder - command: npm run start:dev microservices + command: npm run start:debug microservices volumes: - ../server:/usr/src/app - ${UPLOAD_LOCATION}:/usr/src/app/upload - /usr/src/app/node_modules env_file: - .env + ports: + - 9231:9230 environment: - NODE_ENV=development depends_on: