stalwart: use swarm ports configuration

This commit is contained in:
2025-10-08 19:24:11 +02:00
parent 1d5201242b
commit 2854b0f194

View File

@@ -8,11 +8,19 @@ services:
volumes: volumes:
- stalwart_data:/opt/stalwart - stalwart_data:/opt/stalwart
ports: ports:
- "25:25" # SMTP port - target: 25
- "465:465" # SMTPS port published: 25
- "993:993" # IMAPS port mode: host
- "587:587" # SMTP Submission STARTTLS - target: 465
- "8080" # HTTP port published: 465
mode: host
- target: 993
published: 993
mode: host
- target: 587
published: 587
mode: host
- "8080"
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.stalwart.rule=Host(`mail.vhaudiquet.fr`)" - "traefik.http.routers.stalwart.rule=Host(`mail.vhaudiquet.fr`)"