chore: microservices debugger (#2345)

* chore: microservices debugger

* Update launch.json
This commit is contained in:
Jason Rasmussen 2023-04-28 14:21:01 -04:00 committed by GitHub
parent c4f5dc6d01
commit 1e97407025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

9
.vscode/launch.json vendored
View file

@ -9,6 +9,15 @@
"name": "Immich Server", "name": "Immich Server",
"remoteRoot": "/usr/src/app", "remoteRoot": "/usr/src/app",
"localRoot": "${workspaceFolder}/server" "localRoot": "${workspaceFolder}/server"
},
{
"type": "node",
"request": "attach",
"restart": true,
"port": 9231,
"name": "Immich Microservices",
"remoteRoot": "/usr/src/app",
"localRoot": "${workspaceFolder}/server"
} }
] ]
} }

View file

@ -53,13 +53,15 @@ services:
context: ../server context: ../server
dockerfile: Dockerfile dockerfile: Dockerfile
target: builder target: builder
command: npm run start:dev microservices command: npm run start:debug microservices
volumes: volumes:
- ../server:/usr/src/app - ../server:/usr/src/app
- ${UPLOAD_LOCATION}:/usr/src/app/upload - ${UPLOAD_LOCATION}:/usr/src/app/upload
- /usr/src/app/node_modules - /usr/src/app/node_modules
env_file: env_file:
- .env - .env
ports:
- 9231:9230
environment: environment:
- NODE_ENV=development - NODE_ENV=development
depends_on: depends_on: