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 context: ./docker/malware-scanner
dockerfile: Dockerfile dockerfile: Dockerfile
args: args:
branch: main branch: tmp
container_name: malware-scanner container_name: malware-scanner
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging
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}
- 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: expose:
- 4000 - 4000
networks: networks:
shared: shared:
ipv4_address: 10.10.10.101 ipv4_address: 10.10.10.101
depends_on: depends_on:
- mongo
- clamav - clamav

View File

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