krey / protonvpn-docker

Setup for running protonvpn inside a docker container
16 stars 7 forks source link

cron/event for acquiring new protonvpn ip #2

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi,

Hope you are all well !

Is it possible to create an option for acquiring a new ip every x hours.

In fact, it is like restarting the service but keeping it live.

In my case, I have to

docker-compose stop protonvpn
docker-compose up -d protonvpn

But, I would like to send an event or set a cronjob to restart the protonvpn service and keep it live.

Thanks in advance for any insights or inputs on that topic.

Cheers, X

ghost commented 4 years ago

Hi @krey,

What do you think about of using one of these ? https://github.com/ncarlier/webhookd https://github.com/gdamore/govisor

I am stucked with that, I even posted a stackoverflow question https://stackoverflow.com/questions/62257030/reload-docker-container-programatically-if-another-service-detects-an-abnormal-b

krey commented 4 years ago

I think what you're saying makes sense, but I don't have any experience with these tools, I'm sorry.

I only ever use 1 container, which I'm start/stop manually, so I don't have a need for this functionality.