<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Docker Compose on Nerdsid.com</title><link>https://nerdsid.com/tags/docker-compose/</link><description>Recent content in Docker Compose on Nerdsid.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 01 Jul 2026 11:38:29 +0000</lastBuildDate><atom:link href="https://nerdsid.com/tags/docker-compose/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker Compose Basic</title><link>https://nerdsid.com/posts/docker-compose-basic/</link><pubDate>Wed, 01 Jul 2026 11:38:29 +0000</pubDate><guid>https://nerdsid.com/posts/docker-compose-basic/</guid><description>&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>In this lab, you&amp;rsquo;ll first deploy an application by setting up network, multiple containers individually. Then you will clean up resources, and deploy the same application using Docker Compose.&lt;/p>
&lt;h2 id="task-1-create-a-bridge-network">Task 1: Create a Bridge Network&lt;/h2>
&lt;p>Create a bridge network named &lt;code>clicknet&lt;/code>.&lt;/p>






&lt;div class="codeblock">
 &lt;div class="codeblock__header">
 &lt;div class="codeblock__filename codeblock__filename--lang">
 
 BASH
 
 &lt;/div>
 &lt;div class="codeblock__actions">
 
 &lt;/div>
 &lt;/div>
 &lt;div class="codeblock__body">
 &lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">docker network create --driver bridge clicknet&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
 &lt;/div>
&lt;/div>&lt;h3 id="verify">Verify&lt;/h3>

&lt;figure class="terminal no-copy">
 &lt;header class="terminal-header">
 &lt;div class="terminal-controls">
 &lt;span class="dot dot--red">&lt;/span>
 &lt;span class="dot dot--yellow">&lt;/span>
 &lt;span class="dot dot--green">&lt;/span>
 &lt;/div>
 
 &lt;figcaption class="terminal-title">list docker networks&lt;/figcaption>
 
 &lt;/header>
 &lt;pre>&lt;code>$ docker network ls
NETWORK ID NAME DRIVER SCOPE
5aa54ade2dcc bridge bridge local
fc40bfcbce91 clicknet bridge local
238b23f4e2a9 host host local
59b9cbf97489 none null local&lt;/code>&lt;/pre>
&lt;/figure>

&lt;h2 id="task-2-run-a-redis-container">Task 2: Run a Redis Container&lt;/h2>
&lt;p>Create a background container named &lt;code>redis&lt;/code> using the &lt;code>redis:alpine&lt;/code> image and attach it to the &lt;code>clicknet&lt;/code> network.&lt;/p></description></item></channel></rss>