1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00: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

3
.gitignore vendored
View file

@ -1,5 +1,6 @@
.DS_Store .DS_Store
.vscode .vscode/*
!.vscode/launch.json
.idea .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: services:
immich-server: immich-server:
@ -7,11 +7,13 @@ services:
context: ../server context: ../server
dockerfile: Dockerfile dockerfile: Dockerfile
target: builder target: builder
command: npm run start:dev immich command: npm run start:debug immich
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
ports:
- 9230:9230
env_file: env_file:
- .env - .env
environment: environment:

View file

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