mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
43 lines
1 KiB
Plaintext
43 lines
1 KiB
Plaintext
|
version: '2'
|
||
|
services:
|
||
|
mail:
|
||
|
image: tvial/docker-mailserver:latest
|
||
|
hostname: ${HOSTNAME}
|
||
|
domainname: ${DOMAINNAME}
|
||
|
container_name: ${CONTAINER_NAME}
|
||
|
ports:
|
||
|
- "25:25"
|
||
|
- "143:143"
|
||
|
- "587:587"
|
||
|
- "993:993"
|
||
|
labels:
|
||
|
- "co.elastic.logs/enabled=true"
|
||
|
- "co.elastic.logs/module=system"
|
||
|
- "co.elastic.logs/fileset.stdout=syslog"
|
||
|
volumes:
|
||
|
- maildata:/var/mail
|
||
|
- mailstate:/var/mail-state
|
||
|
- maillogs:/var/log/mail
|
||
|
- ./config/:/tmp/docker-mailserver/
|
||
|
env_file:
|
||
|
- .env
|
||
|
- env-mailserver
|
||
|
cap_add:
|
||
|
- NET_ADMIN
|
||
|
- SYS_PTRACE
|
||
|
restart: always
|
||
|
filebeat:
|
||
|
image: docker.elastic.co/beats/filebeat:7.6.1
|
||
|
user: root
|
||
|
volumes:
|
||
|
- ./config/filebeat.docker.yml:/usr/share/filebeat/filebeat.yml:ro
|
||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||
|
- /var/lib/docker/containers/:/var/lib/docker/containers/:ro
|
||
|
command: ["filebeat", "-e", "--strict.perms=false"]
|
||
|
restart: always
|
||
|
volumes:
|
||
|
maildata:
|
||
|
driver: local
|
||
|
maillogs:
|
||
|
driver: local
|