Skip to content

Instantly share code, notes, and snippets.

@zdunecki
Last active January 27, 2019 21:41
Show Gist options
  • Save zdunecki/dcff8c3da90eec6eefa8c83a7c88c849 to your computer and use it in GitHub Desktop.
Save zdunecki/dcff8c3da90eec6eefa8c83a7c88c849 to your computer and use it in GitHub Desktop.
Go and Docker Compose
version: '3'
services:
app:
build: .
restart: on-failure
volumes:
- .:/go/src/my_app
entrypoint: dlv debug --headless --listen=:2345 --api-version=2
ports:
- "your_app_outside_container_port:your_app_inside_container_port"
- "2345:2345"
security_opt:
- "seccomp:unconfined"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment