add nineschool
This commit is contained in:
14
services/30-mta/dockercompose/dockercompose.yml
Normal file
14
services/30-mta/dockercompose/dockercompose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
# Passerelle courriel pour les autres conteneurs
|
||||
services:
|
||||
mta:
|
||||
image: postfix
|
||||
container_name: mta
|
||||
restart: unless-stopped
|
||||
env_file: ./services/30-mta/env/.env.merge
|
||||
networks:
|
||||
- nine-network
|
||||
secrets:
|
||||
- postfix_password
|
||||
secrets:
|
||||
postfix_password:
|
||||
file: ./services/30-mta/secrets/postfix_password.txt
|
4
services/30-mta/env/.env
vendored
Normal file
4
services/30-mta/env/.env
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
POSTFIX_HOSTNAME="nine.local"
|
||||
POSTFIX_RELAY_HOST="$MTA_RELAY_HOST:$MTA_RELAY_PORT"
|
||||
POSTFIX_RELAY_USER="$MTA_RELAY_USER"
|
||||
POSTFIX_RELAY_PASSWORD_FILE="/run/secrets/postfix_password"
|
22
services/30-mta/misc/nine.sh
Normal file
22
services/30-mta/misc/nine.sh
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
function upmta {
|
||||
if [[ $MTA_ACTIVATE == 1 && $MTA_LOCAL == 1 ]]
|
||||
then
|
||||
Title ${MTA_SERVICE_NAME^^}
|
||||
EchoVert "CONTAINER"
|
||||
upservice ${MTA_SERVICE_NAME}
|
||||
Echo
|
||||
fi
|
||||
}
|
||||
|
||||
function destroymta {
|
||||
if [[ $MTA_LOCAL == 1 ]]
|
||||
then
|
||||
Title "DESTROY ${MTA_SERVICE_NAME}"
|
||||
|
||||
stop ${MTA_SERVICE_NAME} 1
|
||||
docker-compose rm -s -v -f "${MTA_SERVICE_NAME}"
|
||||
echo ""
|
||||
fi
|
||||
}
|
1
services/30-mta/secrets/postfix_password.txt
Normal file
1
services/30-mta/secrets/postfix_password.txt
Normal file
@ -0,0 +1 @@
|
||||
secret
|
Reference in New Issue
Block a user