-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
38 lines (32 loc) · 1002 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This docker-compose.yml can be used as a usage example
# it is also used for clamscan-docker developements
version: '3'
services:
clamav:
build: ./image/
image: abesesr/clamscan-docker:1.4.7
container_name: clamav
environment:
FRESHCLAM_AT_STARTUP: "1"
SCAN_AT_STARTUP: "1"
SCAN_ONLY_NEW_FILES: "1"
FOLDER_TO_SCAN: "/folder-to-scan/"
CRON_CLAMSCAN: "0 * * * *"
CLAMSCAN_OPTIONS: "--recursive=yes --allmatch=yes --remove=no --suppress-ok-results"
ALERT_MAILTO: "security@team.fr"
SMTP_TLS: "off"
SMTP_HOST: "clamav-mailhog"
SMTP_PORT: "1025"
depends_on:
- clamav-mailhog
volumes:
- ./volumes/folder-to-scan/:/folder-to-scan/
clamav-mailhog:
image: mailhog/mailhog:v1.0.1
container_name: clamav-mailhog
environment:
MH_SMTP_BIND_ADDR: "0.0.0.0:1025" # cf https://github.com/mailhog/MailHog/blob/master/docs/CONFIG.md
ports:
- 8025:8025
logging:
driver: none