documentation
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-12-10 16:43:49 +01:00
parent e8f66cd354
commit fd5d006c33
Signed by: wn
GPG Key ID: 18FDFA577A8871AD

View File

@ -23,31 +23,21 @@ Typically, don't expose the smtp port of this container to the default network o
``` ```
#!/bin/bash #!/bin/bash
. /opt/container-start-scripts/startfuncs.inc
IMAGE=quay.io/wollud1969/exim-docker:0.0.9 IMAGE=quay.io/wollud1969/exim-docker:0.0.9
MAILER_NETWORK=mailer-network MAILER_NETWORK=mailer-network
VOLUMES=""
createVolumes
evalCliOptions $@
docker network create $MAILER_NETWORK || echo "mailer-network already exists" docker network create $MAILER_NETWORK || echo "mailer-network already exists"
if [ "$RELAYNETS" = "" ]; then if [ "$RELAYNETS" = "" ]; then
RELAYNETS=`docker network inspect $MAILER_NETWORK --format '{{ (index .IPAM.Config 0).Subnet }}'` RELAYNETS=`docker network inspect $MAILER_NETWORK --format '{{ (index .IPAM.Config 0).Subnet }}'`
fi fi
docker run \ docker run \
-d \ -d \
-e SMARTHOST=krd2cacleu.krohnegroup.com \ -e SMARTHOST=smarthost.example.com \
-e LOCALMAILNAME=krohne.com \ -e LOCALMAILNAME=krohne.com \
-e RELAYNETS=$RELAYNETS \ -e RELAYNETS=$RELAYNETS \
-e ROOT=w.hottgenroth@krohne.com \ -e ROOT=root@example.com \
--network $MAILER_NETWORK \ --network $MAILER_NETWORK \
--name mailer \ --name mailer \
--restart always \ --restart always \