title: How to route traffic from one container to another in docker compose
body: <p>I have this docker compose. I would like to route all traffic from <code>app</code> container through <code>openvpn</code> container without changing anything in host server. Is it possible?</p>
  
  <pre><code>version: '3'
  
  services:
    openvpn:
      image: openvpn
      networks:
        - net
  
    app:
      image: myapp
      networks:
        - net
  
  networks:
    net:
      driver: bridge
  </code></pre>