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

38 lines
970 B
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:
2021-05-17 17:22:51 +02:00
image: docker.io/mailserver/docker-mailserver:9.1.0
2020-04-13 14:26:20 +02:00
hostname: ${HOSTNAME}
domainname: ${DOMAINNAME}
container_name: ${CONTAINER_NAME}
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:
- ./letsencrypt/etc/letsencrypt/:/etc/letsencrypt
2021-05-17 11:20:02 +02:00
- ./maildata:/var/mail
- ./mailstate:/var/mail-state
- ./maillogs:/var/log/mail
- ./config/:/tmp/docker-mailserver/${SELINUX_LABEL}
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"]
2020-04-13 14:26:20 +02:00
letsencrypt:
image: linuxserver/letsencrypt
container_name: letsencrypt
cap_add:
- NET_ADMIN
2021-05-17 16:21:10 +02:00
env_file: letsencrypt.env
2020-04-13 14:26:20 +02:00
volumes:
- ./letsencrypt:/config
ports:
- 80:80
- 443:443
2021-05-17 16:21:10 +02:00
restart: unless-stopped