Ajout d’une passerelle de messagerie pour les conteneurs.

This commit is contained in:
2024-09-18 15:30:17 +02:00
parent a8226e2942
commit be14957a0e
26 changed files with 232 additions and 21 deletions

View File

@ -0,0 +1,22 @@
#!/bin/bash
function upfakesmtp {
if [[ $FAKE_SMTP_ACTIVATE == 1 && $FAKE_SMTP_LOCAL == 1 ]]
then
Title ${FAKE_SMTP_NAME^^}
EchoVert "CONTAINER"
upservice ${FAKE_SMTP_NAME}
Echo
fi
}
function destroyfakesmtp {
if [[ $FAKE_SMTP_LOCAL == 1 ]]
then
Title "DESTROY ${FAKE_SMTP_NAME}"
stop ${FAKE_SMTP_NAME} 1
docker-compose rm -s -v -f "${FAKE_SMTP_NAME}"
echo ""
fi
}