I experimented with moving my seed box to a Docker container, and I think I'm against the chicken / egg problem:
In the current configuration of the seed box, OpenVPN works (all the Internet goes through a VPN) through privateinternetaccess.com. I have a script ( https://github.com/firecat53/pia_transmission_monitor ) that checks with the PIA for the assigned forwarded port, and then updates the transfer daemon accordingly with the port and bind the address.
The problem is that the assigned forwarded port is checked hourly, and it can change at any time ... and I need to know the port before starting the Docker container, so that I know which ports should go through / from the container. I was about to run OpenVPN inside the container, but, not knowing in advance which port to assign to the container, I'm not sure if this will work.
A very hacky solution could be to launch OpenVPN and another Docker daemon inside one container, and then start the transfer container inside the OpenVPN container. It seems complicated, although I have not tried it yet.
Did I miss something really obvious here? Any other ideas?
Thanks!
Scott
source share