mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Limiter fix for older kernels
This commit is contained in:
@@ -59,15 +59,17 @@ services:
|
|||||||
NETALERTX_DEBUG: 0 # 0=kill all services and restart if any dies. 1 keeps running dead services.
|
NETALERTX_DEBUG: 0 # 0=kill all services and restart if any dies. 1 keeps running dead services.
|
||||||
|
|
||||||
# Resource limits to prevent resource exhaustion
|
# Resource limits to prevent resource exhaustion
|
||||||
mem_limit: 2048m
|
mem_limit: 2048m # Maximum memory usage
|
||||||
mem_reservation: 1024m
|
mem_reservation: 1024m # Soft memory limit
|
||||||
cpus: 4
|
cpu_shares: 512 # Relative CPU weight for CPU contention scenarios
|
||||||
pids_limit: 512
|
pids_limit: 512 # Limit the number of processes/threads to prevent fork bombs
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file" # Use JSON file logging driver
|
||||||
options:
|
options:
|
||||||
max-size: "10m"
|
max-size: "10m" # Rotate log files after they reach 10MB
|
||||||
max-file: "3"
|
max-file: "3" # Keep a maximum of 3 log files
|
||||||
|
|
||||||
|
# Always restart the container unless explicitly stopped
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user