title: Why Docker is not compiling my micro-service source files?
body: <p>I've just started to use Docker.</p>
  
  <p>I'm working on a project coded by another developer. In the project Docker container, I have three micro-services (aggregatore, classificatore, testmicro). </p>
  
  <p>In <code>classificatore/</code>, I have:</p>
  
  <p><strong>classificatore/Dockerfile</strong></p>
  
  <pre><code>FROM python:3
  RUN mkdir /src
  ADD requirements.txt /src/.
  WORKDIR /src
  RUN pip install -r requirements.txt
  ADD . /src/.
  RUN mkdir -p /tmp/reqdoc
  CMD ["python", "main.py"]
  </code></pre>
  
  <p>I build-up the app by running:</p>
  
  <pre><code>docker-compose up -d
  </code></pre>
  
  <p>I've realised that Docker is not compiling the source files in the project folder but it is using the ones in the dir <code>/src</code> created by classificatore/Dockerfile. I can't find this dir.</p>
  
  <p>How can I tell docker to use the files in my project location?</p>
  
  <p>I'm using PyCharm, don't know if it is an useful info :-)</p>
  
  <p><strong>EDIT 1</strong>:</p>
  
  <p><strong>docker-compose.yml</strong></p>
  
  <pre><code>version: '2.1'
  services:
    files:
      image: busybox
      volumes:
       [..]
  
    grafana:
       [..]
  
    prometheus:
       [..]
  
    aggregatore:
     [..] 
  
    classificatore:
      build: classificatore/.
      volumes:    
        - [..]
      volumes_from: 
        - files
      ports: 
        - [..]
      command: ["python", "/src/main.py"]
      depends_on: 
        rabbit:
          condition: service_healthy
  
    testmicro:
      [..]    
    rabbit:
      [..]
  </code></pre>