Add development + debugging docker configs

This commit is contained in:
sid palas
2023-02-01 16:15:05 -05:00
parent 15a831b04b
commit bb256c8926
21 changed files with 3752 additions and 26 deletions

View 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"