Last active
June 22, 2025 19:10
-
-
Save RikoDEV/e6a8c3df43b892b6143e4368048240da to your computer and use it in GitHub Desktop.
Poste.io + Traefik v3 | Docker Compose Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
networks: | |
traefik-proxy: | |
name: traefik_gateway | |
external: true | |
services: | |
mailserver: | |
image: analogic/poste.io | |
container_name: mailserver | |
hostname: mail.example.com | |
restart: always | |
environment: | |
- DISABLE_CLAMAV=TRUE | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- ./data:/data | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.mailserver.entrypoints=web" | |
- "traefik.http.routers.mailserver.rule=Host(`mail.example.com`)" | |
- "traefik.http.routers.mailserver.service=mailserver" | |
- "traefik.http.services.mailserver.loadbalancer.server.port=80" | |
- "traefik.tcp.routers.mailserver.entrypoints=websecure" | |
- "traefik.tcp.routers.mailserver.rule=HostSNI(`mail.example.com`)" | |
- "traefik.tcp.routers.mailserver.service=mailserver" | |
- "traefik.tcp.routers.mailserver.tls.passthrough=true" | |
- "traefik.tcp.services.mailserver.loadbalancer.server.port=443" | |
networks: | |
- traefik-proxy | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
ports: | |
- "25:25" | |
- "110:110" | |
- "143:143" | |
- "465:465" | |
- "587:587" | |
- "993:993" | |
- "995:995" |
I did that but continue with fail on the tcp connections.
continue showing the last certificate and not the new
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traefik configuration snippet