From 4c28300d9587665a3d53d68bde006f8474ef528d Mon Sep 17 00:00:00 2001 From: Kosztyk <36381705+Kosztyk@users.noreply.github.com> Date: Tue, 2 Dec 2025 10:43:35 +0200 Subject: [PATCH] Configure ClamAV REST API and change port mapping Added ClamAV REST API service and updated ports. --- compose.yaml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/compose.yaml b/compose.yaml index 5b26ff8..ca29d2b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -16,5 +16,32 @@ services: # - HIDE_HISTORY=true # hides the history tab in the web interface, defaults to false - TZ=Europe/Stockholm # set your timezone, defaults to UTC # - UNAUTHENTICATED_USER_SHARING=true # for use with ALLOW_UNAUTHENTICATED=true to share history with all unauthenticated users / devices + - CLAMAV_URL=http://clam_av_api:3000/api/v1/scan ports: - - 3000:3000 + - 8080:3000 + + clamav-rest-api: + image: benzino77/clamav-rest-api:latest + container_name: clamav-rest-api + restart: unless-stopped + environment: + - NODE_ENV=production + # field name expected in the multipart form + - APP_FORM_KEY=FILES + # talk to your existing ClamAV daemon + - CLAMD_IP=CLAMAV_server_IP + - CLAMD_PORT=3310 + # max allowed file size (here: 250 MB) + - APP_MAX_FILE_SIZE=262144000 + ports: + # outside:inside + - "3000:3000" + + clamav: + image: clamav/clamav:latest + container_name: clamav + restart: unless-stopped + ports: + - "3310:3310" + environment: + - CLAMAV_NO_FRESHCLAMD=false