initial commit
Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
commit
d335367607
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM debian:sid-slim
|
||||
RUN apt update && apt install -y cron clamav && apt purge
|
||||
RUN freshclam
|
||||
COPY ./clamav /etc/cron.d/clamav
|
||||
RUN chmod 644 /etc/cron.d/clamav
|
||||
ENTRYPOINT ["/usr/sbin/cron", "-f"]
|
19
README.md
Normal file
19
README.md
Normal file
@ -0,0 +1,19 @@
|
||||
# docker-malware-scan
|
||||
|
||||
### Simple docker with `clamav` antivirus daily scanner
|
||||
|
||||
## Config
|
||||
|
||||
edit compose.yml file volumes
|
||||
|
||||
## Build
|
||||
|
||||
docker compose build
|
||||
|
||||
## Start
|
||||
|
||||
docker compose up -d
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
2
clamav
Normal file
2
clamav
Normal file
@ -0,0 +1,2 @@
|
||||
PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
||||
5 4 * * * root freshclam && nice -n10 clamscan -rio --move /data/quarantine /data/queue
|
15
compose.yml
Normal file
15
compose.yml
Normal file
@ -0,0 +1,15 @@
|
||||
services:
|
||||
malware-scan:
|
||||
build: .
|
||||
image: malware-scan
|
||||
hostname: malware-scan
|
||||
container_name: malware-scan
|
||||
restart: always
|
||||
volumes:
|
||||
- /var/lib/docker:/data/queue/docker
|
||||
- ./quarantine:/data/quarantine
|
||||
networks:
|
||||
mynet:
|
||||
|
||||
networks:
|
||||
mynet:
|
Loading…
x
Reference in New Issue
Block a user