Use the `malware-scanner` data dir.

This commit is contained in:
Ivaylo Novakov 2021-11-11 10:34:50 +01:00
parent 50b2c8f85c
commit f92ff89d71
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
3 changed files with 10 additions and 9 deletions

View File

@ -14,8 +14,8 @@ services:
restart: on-failure restart: on-failure
logging: *default-logging logging: *default-logging
volumes: volumes:
- ./docker/data/clamav/defs:/var/lib/clamav - ./docker/data/malware-scanner/clamav/defs:/var/lib/clamav
- ./docker/clamav/clamd.conf:/etc/clamav/clamd.conf:ro - ./docker/malware-scanner/clamd.conf:/etc/clamav/clamd.conf:ro
expose: expose:
- 3310 # NEVER expose this outside of the local network! - 3310 # NEVER expose this outside of the local network!
deploy: deploy:
@ -38,7 +38,6 @@ services:
env_file: env_file:
- .env - .env
environment: environment:
- SKYNET_DB_HOST=${SKYNET_DB_HOST}
- CLAMAV_IP=${CLAMAV_IP:-10.10.10.100} - CLAMAV_IP=${CLAMAV_IP:-10.10.10.100}
- CLAMAV_PORT=${CLAMAV_PORT:-3310} - CLAMAV_PORT=${CLAMAV_PORT:-3310}
expose: expose:

View File

@ -1,5 +1,5 @@
FROM golang:1.16.7 FROM golang:1.16.7
LABEL maintainer="NebulousLabs <devs@nebulous.tech>" LABEL maintainer="SkynetLabs <devs@siasky.net>"
ENV GOOS linux ENV GOOS linux
ENV GOARCH amd64 ENV GOARCH amd64

View File

@ -13,10 +13,12 @@ RUN git clone --single-branch --branch ${branch} https://github.com/SkynetLabs/m
go mod download && \ go mod download && \
make release make release
ARG SKYNET_DB_HOST=localhost ENV SKYNET_DB_HOST="localhost"
ARG SKYNET_DB_PORT=27017 ENV SKYNET_DB_PORT="27017"
ARG SKYNET_DB_USER=username ENV SKYNET_DB_USER="username"
ARG SKYNET_DB_PASS=password ENV SKYNET_DB_PASS="password"
ARG MALWARE_SCANNER_PORT=4000 ENV MALWARE_SCANNER_PORT=4000
ENV CLAMAV_IP=127.0.0.1
ENV CLAMAV_PORT=3310
ENTRYPOINT ["malware-scanner"] ENTRYPOINT ["malware-scanner"]