Skip to content

Instantly share code, notes, and snippets.

View rourke's full-sized avatar

rourke

  • The Netherlands
View GitHub Profile
@rourke
rourke / README.md
Last active January 31, 2024 11:49
qBittorrent healthcheck script

qBittorrent healthcheck script

A qBittorrent script that takes advantage of the docker healthcheck ability to do a few things every x seconds:

  1. Check if qBitorrent is up
  2. If yes, check if the configured listening port is the same as the forwarded port of the VPN provider.
  3. If they don't match, update the listening port.

If at any stage the results are unexpected, it will exit with code 1, meaning the container is classified as unhealthy in Docker.