mirror of
https://github.com/wg-easy/wg-easy.git
synced 2025-09-27 03:56:15 +08:00
docker-compose.yml: add healthcheck
Thanks @CosasDePuma
This commit is contained in:
@@ -42,3 +42,8 @@ services:
|
|||||||
sysctls:
|
sysctls:
|
||||||
- net.ipv4.ip_forward=1
|
- net.ipv4.ip_forward=1
|
||||||
- net.ipv4.conf.all.src_valid_mark=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
|
||||||
|
Reference in New Issue
Block a user