title: does not get asset symfony eb local run
body: <p>I am trying to config an environment with multi container docker for deploying an symfony application in amazon web service.</p>
  
  <p>I am configuring the environment using Dockerrun aws json v2 file and eb local run </p>
  
  <p>The css files and the images are not working in the environment.
  They are called with assets like this.</p>
  
  <p></p>
  
  <p>symfony.conf </p>
  
  <pre><code>server {
  server_name holdbusiness.local;
  root /var/www/symfony/web;
  
  
  location / {
  try_files $uri @rewriteapp;
  }
  
  location @rewriteapp {
  rewrite ^(.*)$ /app.php$1 last;
  }
  
  location ~ ^/(app|app_dev|config)\.php(/|$) {
  fastcgi_pass php - upstream;
  include fastcgi_params;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  fastcgi_param DOCUMENT_ROOT '/var/www/symfony/web';
  
  fastcgi_param REQUEST_METHOD  $request_method;
  fastcgi_param CONTENT_TYPE    $content_type;
  fastcgi_param CONTENT_LENGTH  $content_length;
  }
  
  error_log /var/log/nginx/symfony_error.log;
  access_log /var/log/nginx/symfony_access.log;
  }
  </code></pre>
  
  <p>Dockerfile for nginx</p>
  
  <pre><code>FROM ubuntu:14.04
  
  MAINTAINER Coder
  
  RUN apt - get update &amp;&amp; apt - get install - y \
  nginx
  
  ADD nginx.conf /etc/nginx/
  ADD symfony.conf /etc/nginx/sites - available/
  
  RUN ln - s /etc/nginx/sites - available/symfony.conf /etc/nginx/sites - enabled/symfony
  RUN rm /etc/nginx/sites - enabled/default
  
  RUN echo "upstream php-upstream { server php:9000; }" &gt; /etc/nginx/conf.d/upstream.conf
  
  RUN usermod - u 1000 www - data
  
  CMD ["nginx"]
  
  EXPOSE 80
  EXPOSE 443
  </code></pre>
  
  <p>Logs like this:</p>
  
  <blockquote>
    <p>172.17.0.1 - 172.17.0.1 - - [19/Sep/2017:22:20:51 +0000] "GET /bootstrap3/css/bootstrap.min.css HTTP/1.1" 200 16134 "<a href="http://holdbusiness.local/index" rel="nofollow noreferrer">http://holdbusiness.local/index</a>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"</p>
  </blockquote>
  
  <p>Already tested:</p>
  
  <p>assets:install</p>
  
  <p>composer:install</p>
  
  <p><a href="https://stackoverflow.com/questions/37945904/how-to-make-assets-work-with-symfony3-in-subdirectory-on-nginx?rq=1">How to make assets work with Symfony3 in subdirectory on Nginx</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6795350/nginx-403-forbidden-for-all-files?rq=1">Nginx 403 forbidden for all files</a></p>
  
  <p>chmod 777</p>