Implement MR remarks

This commit is contained in:
PJ 2021-12-20 13:15:28 +01:00
parent 5c8951ef5d
commit 25f1915aa6
No known key found for this signature in database
GPG Key ID: F345964979FA8971
2 changed files with 13 additions and 9 deletions

12
dc
View File

@ -13,11 +13,6 @@ for i in $(seq 1 ${#PORTAL_MODULES}); do
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.accounts.yml" COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.accounts.yml"
fi fi
# abuse module - alias "c"
if [[ ${PORTAL_MODULES:i-1:1} == "c" ]]; then
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.blocker.yml -f docker-compose.abuse.yml"
fi
# blocker module - alias "b" # blocker module - alias "b"
if [[ ${PORTAL_MODULES:i-1:1} == "b" ]]; then if [[ ${PORTAL_MODULES:i-1:1} == "b" ]]; then
COMPOSE_FILES+=" -f docker-compose.blocker.yml" COMPOSE_FILES+=" -f docker-compose.blocker.yml"
@ -28,10 +23,15 @@ for i in $(seq 1 ${#PORTAL_MODULES}); do
COMPOSE_FILES+=" -f docker-compose.jaeger.yml" COMPOSE_FILES+=" -f docker-compose.jaeger.yml"
fi fi
# mongodb module - alias "m". implied by "a" # mongodb module - alias "m". implied by "a" or "u"
if [[ ${PORTAL_MODULES:i-1:1} == "m" ]]; then if [[ ${PORTAL_MODULES:i-1:1} == "m" ]]; then
COMPOSE_FILES+=" -f docker-compose.mongodb.yml" COMPOSE_FILES+=" -f docker-compose.mongodb.yml"
fi fi
# abuse module - alias "u"
if [[ ${PORTAL_MODULES:i-1:1} == "u" ]]; then
COMPOSE_FILES+=" -f docker-compose.mongodb.yml -f docker-compose.blocker.yml -f docker-compose.abuse.yml"
fi
done done
# override file if exists # override file if exists

View File

@ -20,15 +20,19 @@ services:
- ABUSE_LOG_LEVEL=${ABUSE_LOG_LEVEL} - ABUSE_LOG_LEVEL=${ABUSE_LOG_LEVEL}
- ABUSE_MAILBOX=${ABUSE_MAILBOX} - ABUSE_MAILBOX=${ABUSE_MAILBOX}
- ABUSE_SPONSOR=${ABUSE_SPONSOR} - ABUSE_SPONSOR=${ABUSE_SPONSOR}
- BLOCKER_API_URL=${BLOCKER_API_URL} - BLOCKER_IP=${BLOCKER_IP}
- BLOCKER_PORT=${BLOCKER_PORT}
- BLOCKER_AUTH_HEADER=${BLOCKER_AUTH_HEADER} - BLOCKER_AUTH_HEADER=${BLOCKER_AUTH_HEADER}
- EMAIL_SERVER=${EMAIL_SERVER} - EMAIL_SERVER=${EMAIL_SERVER}
- EMAIL_USERNAME=${EMAIL_USERNAME} - EMAIL_USERNAME=${EMAIL_USERNAME}
- EMAIL_PASSWORD=${EMAIL_PASSWORD} - EMAIL_PASSWORD=${EMAIL_PASSWORD}
- MONGO_CONNECTIONSTRING=${MONGO_CONNECTIONSTRING} - SKYNET_DB_HOST=${SKYNET_DB_HOST}
- SKYNET_DB_PORT=${SKYNET_DB_PORT}
- SKYNET_DB_USER=${SKYNET_DB_USER}
- SKYNET_DB_PASS=${SKYNET_DB_PASS}
networks: networks:
shared: shared:
ipv4_address: 10.10.10.110 ipv4_address: 10.10.10.120
depends_on: depends_on:
- mongo - mongo
- blocker - blocker