title: Docker with Symfony 4 - Unable to see the file changes
body: <p>I'm working on a docker image for dev environment for a Symfony 4 application. I'm building it on <code>alpine</code>, <code>php-fpm</code> and <code>nginx</code>. </p>
  
  <p>I have configured an application, but the performance was not great (~700ms) even for the simple hello world application, so I thought I can make it faster somehow. </p>
  
  <p>First of all, I went for semantics configuration and configured the volumes to use <code>cached</code> configuration. Then, I moved <code>vendor</code> to separate volume as it caused the most of performance issues.</p>
  
  <p>As a second thing I wanted to use <code>docker-sync</code> as the benchmarks looked amazing. I configured it and everything ran smoothly. But now I realized that the docker is not reacting to changes in code. </p>
  
  <p>First, I thought that it has something to do with Symfony 4 cache, so I did connect to <code>php</code>'s container and ran <code>php bin/console cache:clear</code>. Cache has been cleared, but the docker did not react to anything. I double-check the files on both <code>web</code> and <code>php</code> containers and the files are changed there. I'm wondering if there is something more I need to configure or why is Symfony not reacting to changes.</p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Symfony/Container does not react to changes even after complete image re-build and removal of semantics configuration and <code>docker-sync</code>. So, basically, it's plain docker with hello-world symfony 4 application and it does not react to changes. <strong>Changes are not even synced with container</strong></p>
  
  <hr>
  
  <p>Configuration:</p>
  
  <pre><code># docker-compose-dev.yml
  version: '3'
  volumes:
    symfony-sync:
      external: true
  services:
    php:
      build: build/php
      expose:
        - 9000
      volumes:
        - symfony-sync:/var/www/html/symfony
        - ./vendor:/var/www/html/vendor
    web:
      build: build/nginx
      restart: always
      expose:
        - 80
        - 443
      ports:
        - 8080:80
        - 8081:443
      depends_on:
        - php
      volumes:
        - symfony-sync:/var/www/html/symfony
        - ./vendor:/var/www/html/vendor
  networks:
    default:
      driver: bridge
      ipam:
        driver: default
        config:
        - subnet: 172.4.0.0/16
  </code></pre>
  
  <hr>
  
  <pre><code># docker-sync.yml
  version: "2"
  options:
    verbose: true
  syncs:
    symfony-sync:
      src: './symfony'
      sync_excludes:
        - '.git'
        - 'composer.lock'
  </code></pre>
  
  <p>Makefile I use for running the app</p>
  
  <pre><code>start:
      docker-sync stop
      docker-sync clean
      cd symfony
      docker volume create --name=symfony-sync
      cd ..
      docker-compose -f docker-compose-dev.yml down
      docker-compose -f docker-compose-dev.yml up -d
      docker-sync start
  
  stop:
      docker-compose stop
      docker-sync stop
  </code></pre>