title: RaspberryPi webserver with nginx and docker only displays Welcome to nginx
body: <p>I try to create a small webserver on my raspberry pi with docker.
  This is my docker-compose file:</p>
  <pre><code>version: &quot;3.6&quot;
  services:
    web:
      image: nginx:latest
      ports:
        - &quot;8080:80&quot;
      volumes:
        - /home/pi/testData/code:/var/www/html
        - /home/pi/testData/site.conf:/etc/nginx/conf.d/site.conf
      depends_on:
        - php
  
    php:
      image: php:7.4-fpm
      volumes:
        - /home/pi/testData/code:/var/www/html
  </code></pre>
  <p>And this my site.conf</p>
  <pre><code>server {
      index index.html index.php;
      listen 80;
      server_name localhost;
      error_log /var/log/nginx/error.log;
      access_log /var/log/nginx/access.log;
      root /var/www/html;
  
      location ~ \.php$ {
          try_files $uri =404;
          fastcgi_split_path_info ^(.+\.php)(/.+)$;
          fastcgi_pass php:9000;
          fastcgi_index index.php;
          include fastcgi_params;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          fastcgi_param PATH_INFO $fastcgi_path_info;
      }
  }
  </code></pre>
  <p>Inside of the folder <code>/home/pi/testData/code</code> is a file named <code>index.php</code> which just echos a Hello World.
  So this file will be mapped into the Docker Container into the path <code>/var/www/html/</code> and inside of the <code>site.conf</code> is the root mentioned also to <code>/var/www/html</code>.
  I also checked if the files are really available inside of the nginx container - both are.</p>
  <p>So as I understand it: If I put an index-file inside of the <code>/var/www/html</code> folder of my nginx docker container, then this file should be displayed if I call the IP of my Raspberry pi on Port 8080.
  But unfortunately I only receive the Welcome to Nginx Page.</p>
  <p>Did I miss something or did I something wrong?</p>