Dumps certificates from Traefik to use them in Mailcow Dockerized.
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 |
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"