Sign inSign up

maxsivkov/clammit

By maxsivkov

•Updated over 5 years ago

image for clammit service

Image
0

100K+

maxsivkov/clammit repository overview

⁠clammit-docker

Dockerfile for clammit⁠

Clammit configuration parameters are passed through environment. Based on these variables launcher.sh creates clamav.cfg configuration⁠ file

Environment variableDescription
CLAMMIT_LISTENThe listen address
CLAMMIT_CLAMD_URLThe URL of the clamd server
CLAMMIT_APP_URL(Optional) Forward all requests to this application
CLAMMIT_LOG_FILE(Optional) The clammit log file, if ommitted will log to stdout
CLAMMIT_TEST_PAGES(Optional) If true, clammit will also offer up a page to perform test uploads
CLAMMIT_DEBUG(Optional) If true, more things will be logged
CLAMMIT_STATUS_CODE(Optional) The HTTP status code to return when a virus is found. Default is 418
CLAMMIT_MEMORY_THRESHOLD(Optional) If the body content-length exceeds this value, it will be written to disk. Below it, we'll hold the whole body in memory to improve speed. Default is 1Mb
CLAMMIT_THREADS(Optional) Number of CPU threads to use. Default is a number of CPUs cores

docker-compose.yml services section example:

    clammit:
        image: maxsivkov/clammit
        ports:
          - "8438:8438"
        environment:
          - CLAMMIT_LISTEN=:8438
          - CLAMMIT_CLAMD_URL=tcp://clamav:3310
          - CLAMMIT_TEST_PAGES=true
          - CLAMMIT_DEBUG=true
          - CLAMMIT_STATUS_CODE=503
          - CLAMMIT_MEMORY_THRESHOLD=10485760
          - CLAMMIT_THREADS=2

Tag summary

Content type

Image

Digest

Size

7.1 MB

Last updated

over 5 years ago

docker pull maxsivkov/clammit