---
title: "Deploy clamav"
description: "Open-source antivirus engine."
category: "Other"
url: https://railway.com/deploy/MAnG6f
---

# Deploy clamav

Open-source antivirus engine.

**[Deploy clamav on Railway](https://railway.com/template/MAnG6f)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/MAnG6f/manifest.json

- **Creator:** Ray Chen
- **Category:** Other
- **Total deploys:** 26

## Template content

### railway-clamav

- **Source:** half0wl/railway-clamav

## Documentation

ClamAV is an open-source antivirus engine for detecting trojans, viruses,
malware, and other malicious threats. Visit [https://docs.clamav.net/](https://docs.clamav.net/)
for more information.

This template deploys ClamAV to [Railway](https://railway.app/). It uses the
[official ClamAV Docker image](https://hub.docker.com/r/clamav/clamav/), and
modifies it to support configuration via environment variables.

To configure ClamAV via environment variables, set
`CLAMD_CONF_${CONFIGURATION_KEY}=${VALUE}` where `CONFIGURATION_KEY` is the
name of the configuration specified in [`clamd.conf`](https://linux.die.net/man/5/clamd.conf)
and `VALUE` is the value you want to set.

[`freshclam.conf`](https://linux.die.net/man/5/freshclam.conf) can also be
configured this way using `FRESHCLAM_CONF_${CONFIGURATION_KEY}=${VALUE}`.

Example(s):

- To set `StreamMaxLength=100M` in `clamd.conf`, set `CLAMD_CONF_StreamMaxLength=100M` in the environment
- To set `ConnectTimeout=30` in `freshclam.conf`, set `FRESHCLAM_CONF_ConnectTimeout=30` in the environment


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/MAnG6f
