Hey folks,

I’m working on a small side project built around a microservices architecture — a few API services, some databases, nothing huge. The folder structure looks like this:

~/myProject/
├── docker-compose.yml
├── .git/
├── service-a/
├── service-b/
└── service-c/

When I run everything with docker-compose up, my code is on my own local machine, but dependencies live inside the containers, so VS Code keeps throwing lint/type errors (since node_modules or pip packages aren’t on my local machine).

If I try using Dev Containers and attach directly to a service, it works better — except that the .git folder isn’t mounted inside the container, so Git integration (history, branches, etc.) breaks inside VS Code. So my questions are:

  1. How do you handle…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help