Central Squid Proxy for LAN Network inside Docker Container

This is my current network diagram.

What i want to accomplish is, to have other docker containers on different hosts inside the LAN Network, use the Squid Container to access the internet.

Here is the current docker-compose.yml:

version: "2"

services:
  squid:
    image: "squid:latest"
    container_name: squid
    networks:
      docker-lan:
        ipv4_address: <ip>
    volumes:
      - /etc/localtime:/etc/localtime:ro
    restart: unless-stopped
networks:
  docker-lan:
    external: true

With this compose file the container starts and accepts connections on its ip at port 3128 within the LAN network. But the requests terminate inside the container right now. What to i need to configure so that all requests are sent to the WAN bridge. The default gateway of the docker host is NOT the WAN bridge.