mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
b6b0948095
* Update docker-compose.yml * Update faq.md * chore: remove volume reference * fix: remove trailing whitespace * chore: add more verbose description Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> * gzip switch added Not all tar versions do support auto detection of compression. Co-authored-by: Frederic Werner <20406381+wernerfred@users.noreply.github.com> Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
28 lines
1 KiB
YAML
28 lines
1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
mailserver:
|
|
image: docker.io/mailserver/docker-mailserver:latest
|
|
hostname: <HOSTNAME> # <-- CHANGE THIS
|
|
domainname: <DOMAINNAME> # <-- CHANGE THIS
|
|
container_name: mailserver
|
|
env_file: mailserver.env
|
|
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
|
|
# More information about the mailserver ports:
|
|
# https://docker-mailserver.github.io/docker-mailserver/edge/config/security/understanding-the-ports/
|
|
ports:
|
|
- "25:25" # SMTP (explicit TLS => STARTTLS)
|
|
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
|
|
- "465:465" # ESMTP (implicit TLS)
|
|
- "587:587" # ESMTP (explicit TLS => STARTTLS)
|
|
- "993:993" # IMAP4 (implicit TLS)
|
|
volumes:
|
|
- ./data/maildata:/var/mail
|
|
- ./data/mailstate:/var/mail-state
|
|
- ./data/maillogs:/var/log/mail
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./config/:/tmp/docker-mailserver/
|
|
restart: always
|
|
stop_grace_period: 1m
|
|
cap_add: [ "NET_ADMIN", "SYS_PTRACE" ]
|