mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
30 lines
726 B
YAML
30 lines
726 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
mailserver:
|
|
image: docker.io/mailserver/docker-mailserver:latest
|
|
hostname: ${HOSTNAME}
|
|
domainname: ${DOMAINNAME}
|
|
container_name: ${CONTAINER_NAME}
|
|
env_file: mailserver.env
|
|
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
|
|
ports:
|
|
- "25:25"
|
|
- "143:143"
|
|
- "587:587"
|
|
- "993:993"
|
|
volumes:
|
|
- maildata:/var/mail
|
|
- mailstate:/var/mail-state
|
|
- maillogs:/var/log/mail
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./config/:/tmp/docker-mailserver/${SELINUX_LABEL}
|
|
restart: always
|
|
stop_grace_period: 1m
|
|
cap_add: [ "NET_ADMIN", "SYS_PTRACE" ]
|
|
|
|
volumes:
|
|
maildata:
|
|
mailstate:
|
|
maillogs:
|