fix: use Compose deploy resource limits
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Publish images and notify Portainer (push) Successful in 42s

This commit is contained in:
Cauê Faleiros
2026-09-18 11:20:21 -03:00
parent 38812884e3
commit 6db107f0fc

View File

@@ -32,18 +32,19 @@ x-app: &app
cap_drop: [ALL]
read_only: true
tmpfs: [/tmp]
pids_limit: 128
logging:
driver: json-file
options: {max-size: "10m", max-file: "3"}
deploy:
resources:
limits:
pids: 128
services:
scanner:
image: clamav/clamav@sha256:9cb27d7660bdf66e9878c832cb433dd8aa152cfbe16f3c2c0084c80b04ae22b4
entrypoint: [clamd, --foreground=true, --config-file=/etc/clamav/clamd.conf]
volumes: [./local/clamd.conf:/etc/clamav/clamd.conf:ro]
networks: [local]
mem_limit: 3g
pids_limit: 128
security_opt: [no-new-privileges:true]
healthcheck:
test: [CMD, clamdscan, --config-file=/etc/clamav/clamd.conf, --ping, "3"]
@@ -51,6 +52,11 @@ services:
interval: 10s
timeout: 5s
retries: 30
deploy:
resources:
limits:
memory: 3G
pids: 128
db-init:
build:
context: .