feat(debug): 添加远程调试支持,开放 JDWP 端口 5005
This commit is contained in:
parent
c7737ea490
commit
a2b9b3478d
@ -9,6 +9,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
|
- "5005:5005" # JDWP 调试端口
|
||||||
environment:
|
environment:
|
||||||
- SPRING_PROFILES_ACTIVE=prod
|
- SPRING_PROFILES_ACTIVE=prod
|
||||||
- SPRING_DATASOURCE_URL=jdbc:mysql://8.148.151.56:3306/reading_platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
- SPRING_DATASOURCE_URL=jdbc:mysql://8.148.151.56:3306/reading_platform?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
||||||
@ -16,6 +17,7 @@ services:
|
|||||||
- SPRING_DATASOURCE_PASSWORD=reading_platform_pwd
|
- SPRING_DATASOURCE_PASSWORD=reading_platform_pwd
|
||||||
- SPRING_FLYWAY_ENABLED=false
|
- SPRING_FLYWAY_ENABLED=false
|
||||||
- JWT_SECRET=${JWT_SECRET:-reading-platform-jwt-secret-key-must-be-at-least-256-bits-long}
|
- JWT_SECRET=${JWT_SECRET:-reading-platform-jwt-secret-key-must-be-at-least-256-bits-long}
|
||||||
|
- JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 # 启用远程调试
|
||||||
volumes:
|
volumes:
|
||||||
- uploads_data:/app/uploads
|
- uploads_data:/app/uploads
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user