Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Schweiger
8cafd254bb Merge pull request #264 from ralfbergs/patch-1
Update clamav.yml: make OpenCloud container depend on ClamAV container.
2026-05-13 08:23:13 +02:00
Ralf G. R. Bergs
4121da5547 Update clamav.yml: make OpenCloud container depend on ClamAV container.
Prevent race condition between the two containers: If OpenCloud container is up quicker than clamd.sock exists, it doesn't work.
2026-04-07 18:22:23 +02:00

View File

@@ -12,6 +12,9 @@ services:
ANTIVIRUS_SCANNER_TYPE: clamav
volumes:
- clamav-socket:/var/run/clamav
depends_on:
clamav:
condition: service_healthy
clamav:
image: clamav/clamav:${CLAMAV_DOCKER_TAG:-latest}
environment:
@@ -26,6 +29,10 @@ services:
logging:
driver: ${LOG_DRIVER:-local}
restart: always
healthcheck:
test: sh -c "[ -S /tmp/clamd.sock ]"
timeout: 1s
retries: 20
volumes:
clamav-db:
clamav-socket: