This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
docker_systems/archive/docker-mailserver/docker-compose.yml

48 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2021-05-17 16:21:10 +02:00
version: "3.8"
2021-05-17 11:20:02 +02:00
2020-04-13 14:26:20 +02:00
services:
mail:
2022-10-17 11:40:23 +02:00
image: docker.io/mailserver/docker-mailserver:11.2.0
2021-05-17 17:51:30 +02:00
hostname: mail
domainname: zweili.org
2021-05-17 11:20:02 +02:00
env_file: mailserver.env
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
2020-04-13 14:26:20 +02:00
ports:
- "25:25"
2021-05-17 11:20:02 +02:00
- "143:143"
2022-10-17 11:36:36 +02:00
- "465:465"
2020-04-13 14:26:20 +02:00
- "587:587"
- "993:993"
volumes:
2022-05-19 22:43:20 +02:00
- /var/lib/acme/mail.zweili.org:/etc/letsencrypt/live/mail.zweili.org:ro
2022-05-05 22:51:12 +02:00
- maildata:/var/mail
- mailstate:/var/mail-state
- ./sa-learn:/etc/cron.d/sa-learn
- maillogs:/var/log/mail
- config:/tmp/docker-mailserver/
2020-04-13 14:26:20 +02:00
- /etc/localtime:/etc/localtime:ro
2021-05-17 11:20:02 +02:00
restart: unless-stopped
2021-05-17 16:21:10 +02:00
cap_add: ["NET_ADMIN", "SYS_PTRACE"]
2021-11-22 13:50:24 +01:00
2022-05-05 22:32:54 +02:00
volumes:
2022-05-05 22:51:12 +02:00
maildata:
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,hard,rw,vers=4.1,noatime"
2022-05-05 22:51:12 +02:00
device: ":/server_data/docker-mailserver/maildata"
mailstate:
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,hard,rw,vers=4.1,noatime"
2022-05-05 22:51:12 +02:00
device: ":/server_data/docker-mailserver/mailstate"
maillogs:
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,hard,rw,vers=4.1,noatime"
2022-05-05 22:51:12 +02:00
device: ":/server_data/docker-mailserver/maillogs"
config:
2022-05-05 22:32:54 +02:00
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,hard,rw,vers=4.1,noatime"
2022-05-05 22:51:12 +02:00
device: ":/server_data/docker-mailserver/config"