docker-compose.yml: add healthcheck

Thanks @CosasDePuma
This commit is contained in:
Philip H 2024-04-27 18:18:51 +02:00 committed by GitHub
parent 4f8ee27d77
commit a3a69654fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -42,3 +42,8 @@ services:
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
healthcheck:
test: /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1"
interval: 1m
timeout: 5s
retries: 3