mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2026-07-13 20:37:40 +00:00
crowdsec: add resource limits
This commit is contained in:
@@ -48,6 +48,11 @@ services:
|
|||||||
- /run/log/journal:/run/log/journal:ro
|
- /run/log/journal:/run/log/journal:ro
|
||||||
- /etc/machine-id:/etc/machine-id:ro
|
- /etc/machine-id:/etc/machine-id:ro
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: "1.0"
|
||||||
|
memory: 768M
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
@@ -70,6 +75,11 @@ services:
|
|||||||
- ./data/geoip:/geoip:ro
|
- ./data/geoip:/geoip:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
- crowdsec
|
- crowdsec
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: "0.25"
|
||||||
|
memory: 128M
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
@@ -89,6 +99,11 @@ services:
|
|||||||
GEOIPUPDATE_FREQUENCY: "24"
|
GEOIPUPDATE_FREQUENCY: "24"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/geoip:/usr/share/GeoIP
|
- ./data/geoip:/usr/share/GeoIP
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: "0.25"
|
||||||
|
memory: 64M
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
|
|||||||
Reference in New Issue
Block a user