From 5bd2c41cd3e30a7dfec420ee06647c73b85fbc88 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Mon, 17 Jul 2023 13:11:02 -0700 Subject: [PATCH] Bump clamav to get it working again freshclam is used to properly update the virus database. It's best to use a separate container so that the clamav container is not impacted by database updates. --- app/views/install/compose.phtml | 17 ++++++++++++++++- docker-compose.yml | 18 +++++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index 015a1f4a9d..1b7e2c52d6 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -633,13 +633,26 @@ services: volumes: - appwrite-redis:/data:rw + # freshclam: + # image: appwrite/clamav:2.0.0 + # container_name: appwrite-freshclam + # environment: + # MODE: freshclam + # volumes: + # - appwrite-clamav-conf:/etc/clamav + # - appwrite-clamav-data:/var/lib/clamav + # clamav: - # image: appwrite/clamav:1.2.0 + # image: appwrite/clamav:2.0.0 # container_name: appwrite-clamav + # environment: + # MODE: clamd # restart: unless-stopped # networks: # - appwrite # volumes: + # - appwrite-clamav-conf:/etc/clamav + # - appwrite-clamav-data:/var/lib/clamav # - appwrite-uploads:/storage/uploads influxdb: @@ -679,3 +692,5 @@ volumes: appwrite-influxdb: appwrite-config: appwrite-executor: + # appwrite-clamav-conf: + # appwrite-clamav-data: diff --git a/docker-compose.yml b/docker-compose.yml index ecb10b9eea..258cf119ac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -705,12 +705,26 @@ services: volumes: - appwrite-redis:/data:rw + # freshclam: + # image: appwrite/clamav:2.0.0 + # container_name: appwrite-freshclam + # environment: + # MODE: freshclam + # volumes: + # - appwrite-clamav-conf:/etc/clamav + # - appwrite-clamav-data:/var/lib/clamav + # clamav: - # image: appwrite/clamav:1.2.0 + # image: appwrite/clamav:2.0.0 # container_name: appwrite-clamav + # environment: + # MODE: clamd + # restart: unless-stopped # networks: # - appwrite # volumes: + # - appwrite-clamav-conf:/etc/clamav + # - appwrite-clamav-data:/var/lib/clamav # - appwrite-uploads:/storage/uploads influxdb: @@ -853,3 +867,5 @@ volumes: appwrite-config: appwrite-executor: # appwrite-chronograf: + # appwrite-clamav-conf: + # appwrite-clamav-data: \ No newline at end of file