postfix/start.sh
2018-12-16 22:39:36 +01:00

19 lines
340 B
Bash
Executable File

#!/bin/bash
IMAGE=postfix
docker build -t $IMAGE .
docker rm -f $IMAGE
docker run -d \
-h $(hostname -f) \
--name $IMAGE \
-p "25:25/tcp" \
-p "587:587/tcp" \
-v /etc/localtime:/etc/localtime:ro \
-v $PWD/postfix:/etc/postfix:ro \
$IMAGE
# -v $PWD/letsencrypt:/etc/letsencrypt:ro \
# --restart=always \
# --net bridge \