mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
41 lines
683 B
Plaintext
41 lines
683 B
Plaintext
version: '2'
|
|
|
|
services:
|
|
mail:
|
|
image: tvial/docker-mailserver:latest
|
|
hostname: ${HOSTNAME}
|
|
domainname: ${DOMAINNAME}
|
|
container_name: ${CONTAINER_NAME}
|
|
links:
|
|
- elk
|
|
ports:
|
|
- "25:25"
|
|
- "143:143"
|
|
- "587:587"
|
|
- "993:993"
|
|
volumes:
|
|
- maildata:/var/mail
|
|
- maillogs:/var/log/mail
|
|
- ./config/:/tmp/docker-mailserver/
|
|
env_file:
|
|
- .env
|
|
- env-mailserver
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_PTRACE
|
|
restart: always
|
|
elk:
|
|
build: elk
|
|
ports:
|
|
- "5601:5601"
|
|
- "9200:9200"
|
|
- "5044:5044"
|
|
- "5000:5000"
|
|
restart: always
|
|
|
|
volumes:
|
|
maildata:
|
|
driver: local
|
|
maillogs:
|
|
driver: local
|