Add ClamAV config and continue the setup.

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

View File

@ -31,25 +31,21 @@ services:
context: ./docker/malware-scanner
dockerfile: Dockerfile
args:
branch: main
branch: tmp
container_name: malware-scanner
restart: unless-stopped
logging: *default-logging
env_file:
- .env
environment:
- SKYNET_DB_HOST=${SKYNET_DB_HOST}
- CLAMAV_IP=${CLAMAV_IP:-10.10.10.100}
- CLAMAV_PORT=${CLAMAV_PORT:-3310}
- MALWARE_SCANNER_PORT=${MALWARE_SCANNER_PORT:-4000}
- PORTAL_DOMAIN=${PORTAL_DOMAIN}
- SKYNET_DB_HOST=${SKYNET_DB_HOST}
- SKYNET_DB_PORT=${SKYNET_DB_PORT}
- SKYNET_DB_USER=${SKYNET_DB_USER}
- SKYNET_DB_PASS=${SKYNET_DB_PASS}
expose:
- 4000
networks:
shared:
ipv4_address: 10.10.10.101
depends_on:
- mongo
- clamav

View File

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