1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-21 18:16:55 +02:00

feat(server) add docker debug config for server (#883)

This commit is contained in:
Jason Rasmussen 2022-10-28 21:35:14 -04:00 committed by GitHub
parent b0f10b1851
commit 05e69da5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 5 deletions

5
.gitignore vendored
View File

@ -1,5 +1,6 @@
.DS_Store
.vscode
.vscode/*
!.vscode/launch.json
.idea
docker/upload
docker/upload

14
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"restart": true,
"port": 9230,
"name": "Immich Server",
"remoteRoot": "/usr/src/app",
"localRoot": "${workspaceFolder}/server"
}
]
}

View File

@ -1,4 +1,4 @@
version: "3.8"
version: '3.8'
services:
immich-server:
@ -7,11 +7,13 @@ services:
context: ../server
dockerfile: Dockerfile
target: builder
command: npm run start:dev immich
command: npm run start:debug immich
volumes:
- ../server:/usr/src/app
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /usr/src/app/node_modules
ports:
- 9230:9230
env_file:
- .env
environment:

View File

@ -11,7 +11,7 @@
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:debug": "nest start --debug 0.0.0.0:9230 --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{apps,libs}/**/*.ts\" --max-warnings 0",
"lint:fix": "npm run lint -- --fix",