<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Barış Yıldızoğlu</title>
    <description>The latest articles on Forem by Barış Yıldızoğlu (@tuskun).</description>
    <link>https://forem.com/tuskun</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3599629%2F8fd39ea5-2274-47ac-a2de-4a5ae29558d9.jpeg</url>
      <title>Forem: Barış Yıldızoğlu</title>
      <link>https://forem.com/tuskun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/tuskun"/>
    <language>en</language>
    <item>
      <title>How Do You Set Up Local Microservices Development with Docker Compose?</title>
      <dc:creator>Barış Yıldızoğlu</dc:creator>
      <pubDate>Thu, 06 Nov 2025 19:12:03 +0000</pubDate>
      <link>https://forem.com/tuskun/how-do-you-set-up-local-microservices-development-with-docker-compose-33ao</link>
      <guid>https://forem.com/tuskun/how-do-you-set-up-local-microservices-development-with-docker-compose-33ao</guid>
      <description>&lt;p&gt;Hey folks,&lt;/p&gt;

&lt;p&gt;I’m working on a small side project built around a &lt;strong&gt;microservices architecture&lt;/strong&gt; — a few API services, some databases, nothing huge. The folder structure looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;~/myProject/
├── docker-compose.yml
├── .git/
├── service-a/
├── service-b/
└── service-c/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

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

&lt;ol&gt;
&lt;li&gt;How do you handle this &lt;strong&gt;local vs container&lt;/strong&gt; dev setup cleanly?&lt;/li&gt;
&lt;li&gt;Any &lt;strong&gt;best practices&lt;/strong&gt; for microservice development with Docker Compose + VS Code Dev Containers?&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;Should I just mount the whole project, including &lt;code&gt;.git&lt;/code&gt;, into the containers?&lt;/li&gt;
&lt;li&gt;Maybe set up &lt;strong&gt;multi-stage Dev Containers&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;Or is it better to keep containers running but code outside and sync changes somehow?&lt;/li&gt;
&lt;li&gt;Or something else?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Would love to see how others structure their setups&lt;/p&gt;

&lt;p&gt;Thanks in advance!&lt;/p&gt;

</description>
      <category>docker</category>
      <category>microservices</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
