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
39
README.md
39
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`
|
- aliases and fowards/redirects are managed in `./postfix/virtual`
|
||||||
- antispam rules are managed in `./spamassassin/rules.cf`
|
- antispam rules are managed in `./spamassassin/rules.cf`
|
||||||
- files must be mounted to `/tmp` in your container (see `docker-compose.yml` template)
|
- 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)
|
- [includes integration tests](https://travis-ci.org/tomav/docker-mailserver)
|
||||||
- [builds automated on docker hub](https://hub.docker.com/r/tvial/docker-mailserver/)
|
- [builds automated on docker hub](https://hub.docker.com/r/tvial/docker-mailserver/)
|
||||||
|
|
||||||
|
@ -40,23 +40,32 @@ Why I created this image: [Simple mail server with Docker](http://tvi.al/simple-
|
||||||
|
|
||||||
## run
|
## 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)
|
## docker-compose template (recommended)
|
||||||
|
|
||||||
mail:
|
mail:
|
||||||
# image: tvial/docker-mailserver
|
image: tvial/docker-mailserver
|
||||||
build: .
|
hostname: mail
|
||||||
hostname: mail
|
domainname: domain.com
|
||||||
domainname: my-domain.com
|
ports:
|
||||||
ports:
|
- "25:25"
|
||||||
- "25:25"
|
- "143:143"
|
||||||
- "143:143"
|
- "587:587"
|
||||||
- "587:587"
|
- "993:993"
|
||||||
- "993:993"
|
volumes:
|
||||||
volumes:
|
- ./spamassassin:/tmp/spamassassin/
|
||||||
- ./spamassassin:/tmp/spamassassin/
|
- ./postfix:/tmp/postfix/
|
||||||
- ./postfix:/tmp/postfix/
|
- ./letsencrypt/etc:/etc/letsencrypt
|
||||||
|
environment:
|
||||||
|
- DMS_SSL=letsencrypt
|
||||||
|
|
||||||
Volumes allow to:
|
Volumes allow to:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue