jgwehr / homelab-docker

Docker Compose for building a home lab
109 stars 15 forks source link

VPN Kill Switch #43

Closed jgwehr closed 1 year ago

jgwehr commented 1 year ago

Fail healthcheck if adapters have disappeared (ie. no longer attached to the vpn service)

healthcheck:
  test:  ls /sys/class/net/ | grep -o "eth[0-9*]\|wg[0-9*]" > /dev/null || exit 1
  interval: 10s