How to make a connection to apps in swarm mode via VPN

Hi,

I already tried how to make a connection to application in swarm mode and I want the apps can be access from VPN as local connection. In case the host docker is client of the VPN server.

This is example config for analytic :

version: “3.5”
services:
os:
image: ubuntu:20.04
command: tail -f /dev/null
ports:
- “9999:22”
networks:
- default
networks:
default:
external:
name: host

Thanks for your help.