@@ -339,6 +339,8 @@ services:
339339 - bash-history:/root/.bash_history
340340 - zsh-history:/root/.zsh_history
341341 - ./shell:/root/custom_shell
342+ # Lets clamdscan reach clamd in the clamav container (see compose/clamav.yml).
343+ - clamav-socket:/run/clamav
342344 depends_on :
343345 - php-8.4-debug
344346 networks :
@@ -368,6 +370,8 @@ services:
368370 - bash-history:/root/.bash_history
369371 - zsh-history:/root/.zsh_history
370372 - ./shell:/root/custom_shell
373+ # Lets clamdscan reach clamd in the clamav container (see compose/clamav.yml).
374+ - clamav-socket:/run/clamav
371375 networks :
372376 - totara
373377
@@ -391,6 +395,8 @@ services:
391395 - bash-history:/root/.bash_history
392396 - zsh-history:/root/.zsh_history
393397 - ./shell:/root/custom_shell
398+ # Lets clamdscan reach clamd in the clamav container (see compose/clamav.yml).
399+ - clamav-socket:/run/clamav
394400 depends_on :
395401 - php-8.5-debug
396402 networks :
@@ -420,6 +426,8 @@ services:
420426 - bash-history:/root/.bash_history
421427 - zsh-history:/root/.zsh_history
422428 - ./shell:/root/custom_shell
429+ # Lets clamdscan reach clamd in the clamav container (see compose/clamav.yml).
430+ - clamav-socket:/run/clamav
423431 networks :
424432 - totara
425433
@@ -430,6 +438,7 @@ services:
430438 # - Add a build entry in compose/build.yml
431439 # - Add a mutagen sync entry in compose/sync.yml
432440 # - Add relevant network aliases in compose/nginx.yml and compose/apache.yml
441+ # - Add the clamav-socket volume mount, if the version is 8.4 or newer
433442 # - Add a CI build entry in .github/workflows/build-php.yml
434443 # - Add a image matrix entry in .github/workflows/scan-images.yml
435444 # - Update the max PHP version in .github/workflows/validate-config.yml
@@ -440,3 +449,4 @@ volumes:
440449 coverage-report :
441450 bash-history :
442451 zsh-history :
452+ clamav-socket :
0 commit comments