title: docker nginx php-fpm file_get_contents not working
body: <p>I'm running a composition of two docker images (nginx and php-fpm). Both are working completely fine and I can open my example website but I get one error when using <code>file_get_contents</code> in PHP:</p>
  
  <pre class="lang-php prettyprint-override"><code>Warning: file_get_contents(/data/nav.json): failed to open stream: No such file or directory in /var/www/localhost/partials/header.php on line 3
  </code></pre>
  
  <p>My nginx points to <code>/var/www/localhost</code> and the <code>data</code> folder is in the root. Relative URI's like <code>data/nav.json</code> in my index.php are working as well as full URL's to other websites.</p>
  
  <p>Full source code is available here: <a href="https://github.com/muuvmuuv/webserver" rel="nofollow noreferrer">https://github.com/muuvmuuv/webserver</a></p>
  
  <p>I also opened an issue on on GitHub from Docker PHP: <a href="https://github.com/docker-library/php/issues/836" rel="nofollow noreferrer">https://github.com/docker-library/php/issues/836</a></p>
  
  <p>I would like to know if this is caused by nginx or php-fpm and why absolute urls are not working.</p>