henkelmax / traefik-mailcow-certdumper

Dumps certificates from Traefik to use them in Mailcow Dockerized.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

About

Dumps certificates from Traefik to use them in Mailcow Dockerized.


Languages

Language:JavaScript 92.8%Language:Dockerfile 7.2%