title: Running nginx in a container as reverse proxy with dynamic configuration
body: <p>I'm trying to setup nginx as a reverse proxy in a container for my containers (Docker Swarm) and static sites which are being hosted on Google Cloud Platform &amp; Netlify</p>
  
  <p>I'm actually able to run nginx in containers, but I'm really worried about the configurations. </p>
  
  <ol>
  <li>How will I update my site configurations in nginx to all containers (add / remove location)?</li>
  <li>Is attaching a disk is the best option to store logs?</li>
  <li>Is there any fault in my architecture?</li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/bcEPW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bcEPW.png" alt="Architecture"></a></p>
  
  <p>If image isn't working, please use this link - <a href="https://s1.postimg.org/1tv4hka3zz/profitto-architecture_1.png" rel="nofollow noreferrer">https://s1.postimg.org/1tv4hka3zz/profitto-architecture_1.png</a></p>