DEV Community

loading...

Discussion on: Docker for Developers (Workshop Ideas)

Collapse
0916dhkim profile image
Donghyeon Kim

VS Code has a feature called "devcontainer" where you can specify project dependencies (i.e. postgres, redis, elasticsearch) in a docker-compose file and edit code inside a docker container with all dependencies spawned automatically for you. The coolest part is that once devcontainer is set up in a repository, everyone else can have the same experience without any configuration. Although GitHub Codespaces sounds like a better version of devcontainer, Codespaces is currently in beta whereas you can try devcontainer now. I wrote a tutorial about this last year and you can also read more about the feature in VSC docs:
github.com/0916dhkim/vscode-devcon...
code.visualstudio.com/docs/remote/...