Last active
January 27, 2019 21:41
-
-
Save zdunecki/dcff8c3da90eec6eefa8c83a7c88c849 to your computer and use it in GitHub Desktop.
Go and Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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