mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
services:
|
|
mailserver:
|
|
image: ghcr.io/docker-mailserver/docker-mailserver:latest
|
|
container_name: mailserver
|
|
# Provide the FQDN of your mail server here (Your DNS MX record should point to this value)
|
|
hostname: mail.podginator.com
|
|
env_file: mailserver.env
|
|
# More information about the mail-server ports:
|
|
# https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/
|
|
ports:
|
|
- "25:25" # SMTP (explicit TLS => STARTTLS, Authentication is DISABLED => use port 465/587 instead)
|
|
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
|
|
- "465:465" # ESMTP (implicit TLS)
|
|
- "587:587" # ESMTP (explicit TLS => STARTTLS)
|
|
- "993:993" # IMAP4 (implicit TLS)
|
|
volumes:
|
|
- mailserver:/var/mail/
|
|
- mailserver:/var/mail-state/
|
|
- mailserver:/var/log/mail/
|
|
- mailserver:/tmp/docker-mailserver/
|
|
restart: always
|
|
stop_grace_period: 1m
|
|
# Uncomment if using `ENABLE_FAIL2BAN=1`:
|
|
# cap_add:
|
|
# - NET_ADMIN
|
|
healthcheck:
|
|
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
|
|
timeout: 3s
|
|
retries: 0
|
|
api:
|
|
build:
|
|
context: ../../../
|
|
dockerfile: ./packages/local-mail-watcher/Dockerfile-watcher
|
|
container_name: "omnivore-mail-watch"
|
|
volumes:
|
|
- mailserver:/var/mail/
|
|
env_file:
|
|
- .env.mail
|
|
depends_on:
|
|
mailserver:
|
|
condition: service_started
|
|
volumes:
|
|
mailserver:
|