mirror of
https://github.com/w0rng/amnezia-wg-easy.git
synced 2025-04-25 12:50:06 +03:00
docker-compose.yml: add healthcheck
Thanks @CosasDePuma
This commit is contained in:
parent
4f8ee27d77
commit
a3a69654fc
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue