Skip to content

Instantly share code, notes, and snippets.

@uilian
Last active September 28, 2022 23:09
Show Gist options
  • Save uilian/4599a077190feb033eaf628ad61d69d3 to your computer and use it in GitHub Desktop.
Save uilian/4599a077190feb033eaf628ad61d69d3 to your computer and use it in GitHub Desktop.
Remote Java Debug within Docker
version: '3.9'
services:
rdu:
image: your/image/here
ports:
- "50000:50000"
- "8443:8443"
- "49540:49540"
environment:
- "JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,address=49540,server=y"
- "JAVA_HOME=/opt/CSCObac/jre"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment