mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
9e1c4783a8
Moved docker-compose.yml.dist to version 2 with data volume container Renamed DMS_SSL to SSL_TYPE Refactored start-mailserver to avoid DKIM errors
27 lines
466 B
Plaintext
27 lines
466 B
Plaintext
version: '2'
|
|
|
|
services:
|
|
mail:
|
|
image: tvial/docker-mailserver:v2
|
|
hostname: mail
|
|
domainname: domain.com
|
|
container_name: mail
|
|
volumes:
|
|
- maildata:/var/mail
|
|
ports:
|
|
- "25:25"
|
|
- "143:143"
|
|
- "587:587"
|
|
- "993:993"
|
|
volumes:
|
|
- ./config/:/tmp/docker-mailserver/
|
|
- ./opendkim/:/tmp/docker-mailserver/opendkim/
|
|
environment:
|
|
- ENABLE_FAIL2BAN=1
|
|
cap_add:
|
|
- NET_ADMIN
|
|
|
|
volumes:
|
|
maildata:
|
|
driver: local
|