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

This commit is contained in:
2024-12-10 16:40:17 +01:00
parent 62a301cc58
commit 93801d7577
2 changed files with 83 additions and 0 deletions

26
examples/start-mailer.sh Normal file
View File

@ -0,0 +1,26 @@
#!/bin/bash
IMAGE=quay.io/wollud1969/exim-docker:0.0.9
MAILER_NETWORK=mailer-network
docker network inspect $MAILER_NETWORK > /dev/null || docker network create $MAILER_NETWORK
if [ "$RELAYNETS" = "" ]; then
RELAYNETS=`docker network inspect $MAILER_NETWORK --format '{{ (index .IPAM.Config 0).Subnet }}'`
fi
docker run \
-d \
-e SMARTHOST=smarthost.example.com \
-e LOCALMAILNAME=example.com \
-e RELAYNETS=$RELAYNETS \
-e ROOT=root@example.com \
--network $MAILER_NETWORK \
--name mailer \
--restart always \
$IMAGE