title: Docker - Share volume between containers in docker compose
body: <p>I have 2 dockerised services, created with <code>docker-compose</code>. A backend one with <code>python</code> and a web one with <code>php</code> and <code>apache</code>. My <code>.yaml</code> file looks like this:</p>
  <pre><code>services:
  
    web:
      build: ./php
      container_name: php_web
      volumes:
        - ./php/:/var/www/html/
      ports:
        - &quot;8100:80&quot;
      stdin_open: true
      tty: true
      
    python:
      build: ./python
      volumes:
        - ./product:/user/src/app
      ports:
        - &quot;5000:5000&quot;
  </code></pre>
  <p>I would like to be able to access the web container filesystem from the python one and vice versa, so they can share files.</p>
  <p>Is there a simple way to do this with docker compose?</p>