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/docker-mailserver/docker-compose.yml

34 lines
1.0 KiB
YAML
Raw 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-05-05 20:21:09 +02:00
image: docker.io/mailserver/docker-mailserver:11.0.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"
2020-04-13 14:26:20 +02:00
- "587:587"
- "993:993"
volumes:
2021-11-22 13:52:53 +01:00
- ../rainloop/letsencrypt/acme.json:/etc/letsencrypt/acme.json:ro
2021-05-17 11:20:02 +02:00
- ./maildata:/var/mail
- ./mailstate:/var/mail-state
2022-02-24 20:28:54 +01:00
- ./sa-learn:/etc/cron.d/sa-learn
2021-05-17 11:20:02 +02:00
- ./maillogs:/var/log/mail
2021-05-17 17:51:30 +02:00
- ./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
whoami:
image: docker.io/traefik/whoami:latest
labels:
2021-11-22 14:03:05 +01:00
- "traefik.enable=true"
2021-11-22 13:50:24 +01:00
- "traefik.http.routers.whoami.rule=Host(`mail.zweili.org`)"
2021-11-22 14:03:05 +01:00
- "traefik.http.routers.whoami.entrypoints=websecure"
- "traefik.http.routers.whoami.tls.certresolver=myresolver"
- "traefik.http.routers.whoami.middlewares=default-headers@file"