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,11 @@
# Passerelle courriel pour les autres conteneurs
services:
fakesmtp:
image: reg.cadoles.com/cadoles/fake-smtp
container_name: fakesmtp
restart: unless-stopped
env_file: ./services/90-fakesmtp/env/.env.merge
networks:
- nine-network
ports:
- "8080:8080"

0
services/90-fakesmtp/env/.env vendored Normal file
View File

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
}