This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ------------------------------------------------------------------------------ | |
| # vpn-uptime-restart.sh | |
| # | |
| # Monitors the VPN container in a Docker Compose stack, restarts the stack if the | |
| # VPN is down or unhealthy, and restarts dependent containers whose uptime | |
| # exceeds the VPN's uptime. Sends notifications via Pushover. | |
| # | |
| # Main variables to set/change: | |
| # COMPOSE_FILE - Path to your docker-compose.yml file |