diff --git a/.vscode/launch.json b/.vscode/launch.json index 086f3c694..7a88b7f3e 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 19864b963..6646c93bd 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: