<?xml version="1.0" encoding="utf-8"?> 
<rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:atom="http://www.w3.org/2005/Atom">

<channel>

<title>Discover Docker, K8s and Hashicorp Nomad with Maksym Prokopov: posts tagged ngix-proxy</title>
<link>https://blog.it-premium.com.ua/tags/ngix-proxy/</link>
<description>The blog about containerisation, virtual machines and useful shell snippets and findings</description>
<author></author>
<language>en</language>
<generator>Aegea 11.3 (v4134)</generator>

<itunes:subtitle>The blog about containerisation, virtual machines and useful shell snippets and findings</itunes:subtitle>
<itunes:image href="" />
<itunes:explicit></itunes:explicit>

<item>
<title>docker-compose, nginx-proxy container and networking</title>
<guid isPermaLink="false">190</guid>
<link>https://blog.it-premium.com.ua/all/docker-compose-nginx-proxy-container-and-networking/</link>
<pubDate>Mon, 04 Dec 2017 11:54:50 +0100</pubDate>
<author></author>
<comments>https://blog.it-premium.com.ua/all/docker-compose-nginx-proxy-container-and-networking/</comments>
<description>
&lt;p&gt;Well, this issue was my pain in the ass until I fully understood what was going on with nginx-proxy container and docker-compose v2.&lt;/p&gt;
&lt;p&gt;When you have &lt;b&gt;docker-compose.yml&lt;/b&gt; with separate frontend network you need to connect this network to nginx-proxy container in order to work. Obviously, there is &lt;b&gt;no frontend network&lt;/b&gt; until you up your containers for the first time!&lt;br /&gt;
When you do&lt;/p&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;docker-compose up&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;network will be created, but nginx-proxy will not be attached to it! So you need to shut down your app containers, do&lt;/p&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;docker network connect itservice_frontend-tier nginx-proxy&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;and then to fire your containers up again! But wait, you need to restart nginx-proxy container to connect to this new network!&lt;/p&gt;
&lt;p&gt;As you can see this process can not be single step deployment solution on CoreOS, but now you know why and how to fix this.&lt;/p&gt;
</description>
</item>


</channel>
</rss>