Malware scanner now depends on blocker because it calls it when it finds malware.

This commit is contained in:
Ivaylo Novakov 2021-12-14 09:39:46 +02:00
parent 95e8b85df9
commit c1bb2d4fd3
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
2 changed files with 8 additions and 4 deletions

11
dc
View File

@ -1,7 +1,10 @@
#!/bin/bash
if [ -f .env ]; then
OLD_IFS=$IFS; IFS=$'\n'; for x in `grep -v '^#.*' .env`; do export $x; done; IFS=$OLD_IFS
OLD_IFS=$IFS
IFS=$'\n'
for x in $(grep -v '^#.*' .env); do export $x; done
IFS=$OLD_IFS
fi
# include base docker compose file
@ -15,7 +18,7 @@ for i in $(seq 1 ${#PORTAL_MODULES}); do
# blocker module - alias "b"
if [[ ${PORTAL_MODULES:i-1:1} == "b" ]]; then
COMPOSE_FILES+=" -f docker-compose.blocker.yml"
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.blocker.yml"
fi
# jaeger module - alias "j"
@ -25,10 +28,10 @@ for i in $(seq 1 ${#PORTAL_MODULES}); do
# malware-scanner module - alias "s"
if [[ ${PORTAL_MODULES:i-1:1} == "s" ]]; then
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.malware-scanner.yml"
COMPOSE_FILES+=" -f docker-compose.blocker.yml -f docker-compose.mongodb.yml -f docker-compose.malware-scanner.yml"
fi
# mongodb module - alias "m". implied by "a" and "c"
# mongodb module - alias "m"
if [[ ${PORTAL_MODULES:i-1:1} == "m" ]]; then
COMPOSE_FILES+=" -f docker-compose.mongodb.yml"
fi

View File

@ -48,3 +48,4 @@ services:
depends_on:
- mongo
- clamav
- blocker