mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix(platform): fix ClamAV connectivity in Docker containers
clamd was only listening on 127.0.0.1 inside its container, so container-to-container connections on the Docker network were refused. - Add CLAMD_CONF_TCPAddr=0.0.0.0 to docker-compose so clamd binds to all interfaces - Change default clamav_service_host from "localhost" to "clamav" (the docker-compose service name), matching how other services like redis, rabbitmq, supabase-db are referenced
This commit is contained in:
@@ -30,7 +30,7 @@ class VirusScanResult(BaseModel):
|
||||
|
||||
class VirusScannerSettings(BaseSettings):
|
||||
# Tunables for the scanner layer (NOT the ClamAV daemon).
|
||||
clamav_service_host: str = "localhost"
|
||||
clamav_service_host: str = "clamav"
|
||||
clamav_service_port: int = 3310
|
||||
clamav_service_timeout: int = 60
|
||||
clamav_service_enabled: bool = True
|
||||
|
||||
@@ -98,6 +98,7 @@ services:
|
||||
- CLAMD_CONF_MaxScanSize=100M
|
||||
- CLAMD_CONF_MaxThreads=12
|
||||
- CLAMD_CONF_ReadTimeout=300
|
||||
- CLAMD_CONF_TCPAddr=0.0.0.0
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "clamdscan --version || exit 1"]
|
||||
interval: 30s
|
||||
|
||||
Reference in New Issue
Block a user