Enable java remote debug on dev docker stack (#1808)

* Enable java remote debug on dev stack

* Enable java remote debug on dev stack

* Update docs with info on docker development stack

* Update dev docs
This commit is contained in:
Muppetteer
2025-12-11 06:49:58 +11:00
committed by GitHub
parent 9ba06eae7b
commit cc38079c40
3 changed files with 30 additions and 6 deletions

View File

@@ -4,10 +4,12 @@ services:
command: sh -c "cd /booklore-api && ./gradlew bootRun"
ports:
- "${BACKEND_PORT:-8080}:8080"
- "${REMOTE_DEBUG_PORT:-5005}:5005"
environment:
- DATABASE_URL=jdbc:mariadb://backend_db:3306/booklore
- DATABASE_USERNAME=booklore
- DATABASE_PASSWORD=booklore
- REMOTE_DEBUG_ENABLED=true
stdin_open: true
tty: true
restart: unless-stopped
@@ -29,6 +31,8 @@ services:
- MYSQL_DATABASE=booklore
- MYSQL_USER=booklore
- MYSQL_PASSWORD=booklore
ports:
- "${DB_PORT:-3366}:3306"
healthcheck:
test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-pbooklore" ]
interval: 10s