mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Improved documentation and added link to SSL.md
This commit is contained in:
parent
b7e9221ffa
commit
0e4058d70f
19
README.md
19
README.md
|
@ -26,7 +26,7 @@ Why I created this image: [Simple mail server with Docker](http://tvi.al/simple-
|
|||
- aliases and fowards/redirects are managed in `./postfix/virtual`
|
||||
- antispam rules are managed in `./spamassassin/rules.cf`
|
||||
- files must be mounted to `/tmp` in your container (see `docker-compose.yml` template)
|
||||
- ssl is strongly recommended, you can provide a self-signed certificate, see below
|
||||
- ssl is strongly recommended, read [SSL.md](SSL.md) to use LetsEncrypt or Self-Signed Certificates
|
||||
- [includes integration tests](https://travis-ci.org/tomav/docker-mailserver)
|
||||
- [builds automated on docker hub](https://hub.docker.com/r/tvial/docker-mailserver/)
|
||||
|
||||
|
@ -40,15 +40,21 @@ Why I created this image: [Simple mail server with Docker](http://tvi.al/simple-
|
|||
|
||||
## run
|
||||
|
||||
docker run --name mail -v "$(pwd)/postfix":/tmp/postfix -v "$(pwd)/spamassassin":/tmp/spamassassin -p "25:25" -p "143:143" -p "587:587" -p "993:993" -h mail.my-domain.com -t tvial/docker-mailserver
|
||||
docker run --name mail \
|
||||
-v "$(pwd)/postfix":/tmp/postfix \
|
||||
-v "$(pwd)/spamassassin":/tmp/spamassassin \
|
||||
-v "$(pwd)/letsencrypt/etc":/etc/letsencrypt \
|
||||
-p "25:25" -p "143:143" -p "587:587" -p "993:993" \
|
||||
-e DMS_SSL=letsencrypt \
|
||||
-h mail.domain.com \
|
||||
-t tvial/docker-mailserver
|
||||
|
||||
## docker-compose template (recommended)
|
||||
|
||||
mail:
|
||||
# image: tvial/docker-mailserver
|
||||
build: .
|
||||
image: tvial/docker-mailserver
|
||||
hostname: mail
|
||||
domainname: my-domain.com
|
||||
domainname: domain.com
|
||||
ports:
|
||||
- "25:25"
|
||||
- "143:143"
|
||||
|
@ -57,6 +63,9 @@ Why I created this image: [Simple mail server with Docker](http://tvi.al/simple-
|
|||
volumes:
|
||||
- ./spamassassin:/tmp/spamassassin/
|
||||
- ./postfix:/tmp/postfix/
|
||||
- ./letsencrypt/etc:/etc/letsencrypt
|
||||
environment:
|
||||
- DMS_SSL=letsencrypt
|
||||
|
||||
Volumes allow to:
|
||||
|
||||
|
|
Loading…
Reference in a new issue