Need help setting up network in docker swarm


After finding out that docker swarm does not let me add capabilities to my services, I had to refactor out the features that run under SYS_ADMIN to run under systemd as a standalone container…but now the problem is my existing swarm service needs to talk to the host (systemd’ published port) and still talk to fellow swarm services to function.

I was able to get one of each to work but not both (either host or overlay), what would be the proper solution here? preferably in the YAML definition file.

CentOS 7
Kernel 3.10.0-862.11.6.el7.x86_64
Docker version 18.06.1-ce, build e68fc7a
YAML version: 3.7

your thoughts are appreciated.