$ docker run --name nginx-tcp-proxy -d -p 2106:2106 -p 8123:8123 \
-v C:/Users/dimkk/Documents/projects/docker-nginx-tcp-proxy/nginx.conf:/usr/local/nginx/conf/nginx.conf \
dimkk/docker-nginx-tcp-proxy
- Get the .ovpn file from Open VPN server
- Use command
$ docker run --name nginx-tcp-proxy -d -p 2106:2106 -p 8123:8123
-v C:/docker-nginx-tcp-proxy/nginx.conf:/usr/local/nginx/conf/nginx.conf
-v C:/docker-nginx-tcp-proxy/client.ovpn:/root/client.ovpn
-e OVPN=/root/client.ovpn
--cap-add=NET_ADMIN --device /dev/net/tun
dimkk/docker-nginx-tcp-proxy
https://www.nginx.com/resources/admin-guide/tcp-load-balancing/
thanks, zack