2020-02-06 20:42:46 -05:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
vscode:
|
2020-12-08 06:24:46 +00:00
|
|
|
build: .
|
|
|
|
|
image: godevcontainer
|
2021-08-22 14:58:39 -07:00
|
|
|
devices:
|
|
|
|
|
- /dev/net/tun:/dev/net/tun
|
2020-02-06 20:42:46 -05:00
|
|
|
volumes:
|
|
|
|
|
- ../:/workspace
|
2020-12-08 06:24:46 +00:00
|
|
|
# Docker socket to access Docker server
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2021-04-24 13:53:48 +00:00
|
|
|
# Docker configuration
|
|
|
|
|
- ~/.docker:/root/.docker:z
|
|
|
|
|
# SSH directory for Linux, OSX and WSL
|
|
|
|
|
- ~/.ssh:/root/.ssh:z
|
|
|
|
|
# For Windows without WSL, a copy will be made
|
|
|
|
|
# from /tmp/.ssh to ~/.ssh to fix permissions
|
|
|
|
|
#- ~/.ssh:/tmp/.ssh:ro
|
|
|
|
|
# Shell history persistence
|
|
|
|
|
- ~/.zsh_history:/root/.zsh_history:z
|
2020-12-08 06:24:46 +00:00
|
|
|
# Git config
|
2021-04-24 13:53:48 +00:00
|
|
|
- ~/.gitconfig:/root/.gitconfig:z
|
2020-12-08 06:24:46 +00:00
|
|
|
environment:
|
|
|
|
|
- TZ=
|
2020-02-06 20:42:46 -05:00
|
|
|
cap_add:
|
2020-12-08 06:24:46 +00:00
|
|
|
# For debugging with dlv
|
2021-08-22 14:58:39 -07:00
|
|
|
# - SYS_PTRACE
|
|
|
|
|
- NET_ADMIN
|
2020-02-06 20:42:46 -05:00
|
|
|
security_opt:
|
2020-12-08 06:24:46 +00:00
|
|
|
# For debugging with dlv
|
2020-02-06 20:42:46 -05:00
|
|
|
- seccomp:unconfined
|
|
|
|
|
entrypoint: zsh -c "while sleep 1000; do :; done"
|