Add container security section
This commit is contained in:
27
11-development-workflow/docker-compose-debug.yml
Normal file
27
11-development-workflow/docker-compose-debug.yml
Normal file
@ -0,0 +1,27 @@
|
||||
# Overlay configuration to enable debuggers
|
||||
services:
|
||||
api-node:
|
||||
command:
|
||||
- "npm"
|
||||
- "run"
|
||||
- "debug-docker"
|
||||
ports:
|
||||
- "3000:3000"
|
||||
# inspect debug port
|
||||
- "9229:9229"
|
||||
api-golang:
|
||||
command:
|
||||
- "dlv"
|
||||
- "debug"
|
||||
- "/app/main.go"
|
||||
- "--listen=:4000"
|
||||
- "--headless=true"
|
||||
- "--log=true"
|
||||
- "--log-output=debugger,debuglineerr,gdbwire,lldbout,rpc"
|
||||
- "--accept-multiclient"
|
||||
- "--continue"
|
||||
- "--api-version=2"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
# delve debug port
|
||||
- "4000:4000"
|
||||
Reference in New Issue
Block a user