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

version: "3.8"
services:
mail:
image: docker.io/mailserver/docker-mailserver:10.5
hostname: mail
domainname: zweili.org
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:
- ../rainloop/letsencrypt/acme.json:/etc/letsencrypt/acme.json:ro
- ./maildata:/var/mail
- ./mailstate:/var/mail-state
- ./sa-learn:/etc/cron.d/sa-learn
- ./maillogs:/var/log/mail
- ./config/:/tmp/docker-mailserver/
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
cap_add: ["NET_ADMIN", "SYS_PTRACE"]
whoami:
image: docker.io/traefik/whoami:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`mail.zweili.org`)"
- "traefik.http.routers.whoami.entrypoints=websecure"
- "traefik.http.routers.whoami.tls.certresolver=myresolver"
- "traefik.http.routers.whoami.middlewares=default-headers@file"