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