added healthcheck and resource limits
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user