You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 rivejä
340 B
19 rivejä
340 B
#!/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 \
|