added healthcheck and resource limits

This commit is contained in:
2026-05-06 14:49:44 -07:00
parent 2f226934da
commit f24fb2e43d
@@ -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