From f24fb2e43d0a2b64f51a40d4371bc729fee970e4 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Wed, 6 May 2026 14:49:44 -0700 Subject: [PATCH] added healthcheck and resource limits --- Wireguard-Gateway/docker-compose-bind.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Wireguard-Gateway/docker-compose-bind.yaml b/Wireguard-Gateway/docker-compose-bind.yaml index fee6efb..83f06cd 100644 --- a/Wireguard-Gateway/docker-compose-bind.yaml +++ b/Wireguard-Gateway/docker-compose-bind.yaml @@ -22,4 +22,14 @@ services: sysctls: - net.ipv4.conf.all.src_valid_mark=1 - net.ipv4.ip_forward=1 + healthcheck: + test: ["CMD-SHELL", "wg show wg0 || exit 1"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 15s + deploy: + resources: + limits: + memory: 512m restart: unless-stopped \ No newline at end of file