mirror of
https://github.com/maxkratz/postfix_exporter.git
synced 2024-05-18 12:00:21 +00:00
15 lines
349 B
YAML
15 lines
349 B
YAML
version: '3.2'
|
|
|
|
services:
|
|
postfix-exporter:
|
|
# use local Dockerfile to build image
|
|
build: .
|
|
# mount spool and logfiles as read only to container
|
|
volumes:
|
|
- /var/spool/postfix:/var/spool/postfix:ro
|
|
- /var/log/mail.log:/var/log/mail.log:ro
|
|
# map ports to host
|
|
ports:
|
|
- 9154:9154
|
|
restart: unless-stopped
|