Help With Traefik-Certs-Dumper #526
Unanswered
ShubashBiswas
asked this question in
Q&A
Replies: 3 comments 1 reply
-
Hi @ShubashBiswas! You must get something like this. traefik-certs-dumper:
image: ghcr.io/kereis/traefik-certs-dumper:latest
container_name: traefik-certs-dumper
restart: unless-stopped
depends_on:
- traefik
volumes:
- /etc/localtime:/etc/localtime:ro
- /config/certs/:/traefik:ro
- /config/certs-dumped/:/output services:
mailserver:
image: stalwartlabs/mail-server:latest
container_name: stalwart-mailserver
restart: unless-stopped
hostname: mail.domain.com
networks:
proxy:
ipv4_address: 172.26.0.128
volumes:
- /etc/localtime:/etc/localtime:ro
- data:/opt/stalwart-mail
- /config/certs-dumped/:/data/certs:ro
labels:
- traefik.enable=true
- traefik.http.routers.mailserver.rule=Host(`mail.domain.com`)
- traefik.http.routers.mailserver.entrypoints=websecure
- traefik.http.routers.mailserver.service=mailserver
- traefik.http.routers.mailserver.tls.certresolver=production
- traefik.http.services.mailserver.loadbalancer.server.port=8080
- traefik.tcp.routers.smtp.rule=HostSNI(`*`)
- traefik.tcp.routers.smtp.entrypoints=mail-smtp
- traefik.tcp.routers.smtp.service=smtp
- traefik.tcp.services.smtp.loadbalancer.server.port=25
- traefik.tcp.services.smtp.loadbalancer.proxyProtocol.version=2
# - traefik.tcp.routers.jmap.rule=HostSNI(`*`)
# - traefik.tcp.routers.jmap.tls.passthrough=true
# - traefik.tcp.routers.jmap.entrypoints=websecure
# - traefik.tcp.routers.jmap.service=jmap
# - traefik.tcp.services.jmap.loadbalancer.server.port=443
# - traefik.tcp.services.jmap.loadbalancer.proxyProtocol.version=2
- traefik.tcp.routers.smtps.rule=HostSNI(`*`)
- traefik.tcp.routers.smtps.tls.passthrough=true
- traefik.tcp.routers.smtps.entrypoints=mail-submissions
- traefik.tcp.routers.smtps.service=smtps
- traefik.tcp.services.smtps.loadbalancer.server.port=465
- traefik.tcp.services.smtps.loadbalancer.proxyProtocol.version=2
- traefik.tcp.routers.submission.rule=HostSNI(`*`)
- traefik.tcp.routers.submission.tls.passthrough=true
- traefik.tcp.routers.submission.entrypoints=mail-submission
- traefik.tcp.routers.submission.service=submission
- traefik.tcp.services.submission.loadbalancer.server.port=587
- traefik.tcp.services.submission.loadbalancer.proxyProtocol.version=2
- traefik.tcp.routers.imaps.rule=HostSNI(`*`)
- traefik.tcp.routers.imaps.tls.passthrough=true
- traefik.tcp.routers.imaps.entrypoints=mail-imaps
- traefik.tcp.routers.imaps.service=imaps
- traefik.tcp.services.imaps.loadbalancer.server.port=993
- traefik.tcp.services.imaps.loadbalancer.proxyProtocol.version=2
volumes:
data:
networks:
proxy:
name: traefik
external: true certificate.default.default = true
certificate.default.cert = "%{file:/data/certs/mail.domain.com/cert.pem}%"
certificate.default.private-key = "%{file:/data/certs/mail.domain.com/key.pem}%" |
Beta Was this translation helpful? Give feedback.
0 replies
-
@SashaGoncharov19 Thank you for your advice.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@ShubashBiswas Did you find a way to make it works ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to get the cert. Pem and key.pem from Dokploy Traefik which is needed for the Stalwart Mail Server configuration. Any suggestions or alternatives will work.
Stalwart Compose
Traefik-certs-dumper
Traefik Configuration
Only this part of Stalwart configuration is left:
Beta Was this translation helpful? Give feedback.
All reactions