2016-09-29 20:52:05 +00:00
|
|
|
version: '2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
mail:
|
2017-10-09 17:00:48 +00:00
|
|
|
image: tvial/docker-mailserver:latest
|
2018-02-07 18:37:26 +00:00
|
|
|
hostname: ${HOSTNAME}
|
|
|
|
domainname: ${DOMAINNAME}
|
|
|
|
container_name: ${CONTAINER_NAME}
|
2016-09-29 20:52:05 +00:00
|
|
|
links:
|
|
|
|
- elk
|
|
|
|
ports:
|
|
|
|
- "25:25"
|
|
|
|
- "143:143"
|
|
|
|
- "587:587"
|
|
|
|
- "993:993"
|
|
|
|
volumes:
|
|
|
|
- maildata:/var/mail
|
2019-09-15 13:40:05 +00:00
|
|
|
- maillogs:/var/log/mail
|
2016-09-29 20:52:05 +00:00
|
|
|
- ./config/:/tmp/docker-mailserver/
|
2019-09-20 19:38:13 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
- env-mailserver
|
2016-09-29 20:52:05 +00:00
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
2017-10-10 06:15:18 +00:00
|
|
|
- SYS_PTRACE
|
2017-03-16 15:45:47 +00:00
|
|
|
restart: always
|
2016-09-29 20:52:05 +00:00
|
|
|
elk:
|
|
|
|
build: elk
|
|
|
|
ports:
|
|
|
|
- "5601:5601"
|
|
|
|
- "9200:9200"
|
|
|
|
- "5044:5044"
|
|
|
|
- "5000:5000"
|
2017-03-16 15:45:47 +00:00
|
|
|
restart: always
|
2016-09-29 20:52:05 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
maildata:
|
|
|
|
driver: local
|
2019-09-15 13:40:05 +00:00
|
|
|
maillogs:
|
|
|
|
driver: local
|