Skip to content

Dumps certificates from Traefik to use them in Mailcow Dockerized.

Notifications You must be signed in to change notification settings

henkelmax/traefik-mailcow-certdumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traefik Mailcow Certdumper

Dumps certificates from Traefik to use them in Mailcow Dockerized.

Environment Variables

Variable Default Description
ACME_JSON_PATH ./acme.json The path to the acme.json created by Traefik
DOMAIN example.com The domain to get the certificate from
CERT_PATH ./cert.pem The path to write the Certificate to
KEY_PATH ./key.pem The path to write the Certificate private key to
RUN_AT_START true If you want to dump the certificates at the start of the container

Example Stack YML

version: "3.3"
services:
  certdumper:
    image: 'henkelmax/traefik-mailcow-certdumper:latest'
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock" # Used to restart the mailcow services after dumping
      - "/path/to/acme.json:/acme.json:ro" # The path to the acme.json
      - "/path/to/mailcow-dockerized/data/assets/ssl:/ssl" # The path to the Mailcow ssl directory
    environment:
      ACME_JSON_PATH: "/acme.json"
      DOMAIN: "example.com"
      CERT_PATH: "/ssl/cert.pem"
      KEY_PATH: "/ssl/key.pem"
      RUN_AT_START: "true"