2020-02-06 20:42:46 -05:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
vscode:
|
2020-12-08 06:24:46 +00:00
|
|
|
build: .
|
|
|
|
|
image: godevcontainer
|
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
|
|
|
|
|
# SSH directory
|
2020-10-22 03:54:18 +00:00
|
|
|
- ~/.ssh:/home/vscode/.ssh
|
|
|
|
|
- ~/.ssh:/root/.ssh
|
2020-12-08 06:24:46 +00:00
|
|
|
# Git config
|
|
|
|
|
- ~/.gitconfig:/home/districter/.gitconfig
|
|
|
|
|
- ~/.gitconfig:/root/.gitconfig
|
|
|
|
|
environment:
|
|
|
|
|
- TZ=
|
2020-02-06 20:42:46 -05:00
|
|
|
cap_add:
|
2020-12-08 06:24:46 +00:00
|
|
|
# For debugging with dlv
|
2020-02-06 20:42:46 -05:00
|
|
|
- SYS_PTRACE
|
|
|
|
|
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"
|