work on the mailserver for oxmox.dev
This commit is contained in:
parent
0e0238f4ea
commit
3ad9fa487b
3 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
version: "3.3"
|
||||
version: "3.8"
|
||||
|
||||
# logger driver - change this driver to ship all container logs to a different location
|
||||
x-logging: &logging
|
||||
|
@ -6,13 +6,16 @@ x-logging: &logging
|
|||
driver: loki
|
||||
options:
|
||||
loki-url: "http://localhost:3100/loki/api/v1/push"
|
||||
mode: "non-blocking"
|
||||
max-buffer-size: "32m"
|
||||
loki-retries: "3"
|
||||
|
||||
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: oxmox.dev
|
||||
hostname: mail.oxmox.dev
|
||||
env_file: mailserver.env
|
||||
# More information about the mail-server ports:
|
||||
# https://docker-mailserver.github.io/docker-mailserver/latest/config/security/understanding-the-ports/
|
||||
|
@ -21,7 +24,7 @@ services:
|
|||
- "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)
|
||||
#- "587:587" # ESMTP (explicit TLS => STARTTLS)
|
||||
- "993:993" # IMAP4 (implicit TLS)
|
||||
volumes:
|
||||
- ./dms-data/mail-data/:/var/mail/
|
||||
|
|
|
@ -217,7 +217,7 @@ SMTP_ONLY=
|
|||
# manual => Let's you manually specify locations of your SSL certificates for non-standard cases
|
||||
# self-signed => Enables self-signed certificates
|
||||
SSL_TYPE=letsencrypt
|
||||
SSL_DOMAIN=oxmox.dev
|
||||
SSL_DOMAIN=mail.oxmox.dev
|
||||
|
||||
# These are only supported with `SSL_TYPE=manual`.
|
||||
# Provide the path to your cert and key files that you've mounted access to within the container.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
version: "3.3"
|
||||
version: "3.8"
|
||||
|
||||
# logger driver - change this driver to ship all container logs to a different location
|
||||
x-logging: &logging
|
||||
|
@ -60,7 +60,8 @@ services:
|
|||
container_name: "simple-service"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.whoami.rule=Host(`oxmox.dev`) && Path(`/whoami`)"
|
||||
# Note: mail.oxmox.dev is used here to make traefik request the certificate used by docker mailserver.
|
||||
- "traefik.http.routers.whoami.rule=(Host(`oxmox.dev`) || Host(`mail.oxmox.dev`)) && Path(`/whoami`)"
|
||||
- "traefik.http.routers.whoami.entrypoints=websecure"
|
||||
- "traefik.http.routers.whoami.tls.certresolver=myresolver"
|
||||
|
||||
|
|
Loading…
Reference in a new issue