...
Network details can be found at the end of the inspect command. If the gateway has the address 172.21.x.x then you have found the culprit (ignore the IPs on the below screenshot)
...
3. go to the directory of the container - /data/docker/stacks/<container_directory>
...