title: How to share .sock file between nginx docker and uwsgi docker?
body: <p>I'm using docker-compose and now have two docker containers - one is a nginx webserver, whereas the other one is ubuntu with Python uwsgi and Flask.</p>
  
  <p>As I know, the best way to connect nginx and uWSGI is done by sharing a *.sock file between them and pass the requests into the file (And that what I do in older projects where I did not use dockers).</p>
  
  <p>I'm wondering how can I share the sock file between the dockers in order to enable the communication between them?</p>
  
  <p>And at all.. I'm wondering if this scenario of two containers - one for nginx and one for the Flask framework and uWSGI - is best practice and right to do.</p>
  
  <p>Thanks</p>