https://github.com/henkelmax/traefik-mailcow-certdumper
Dumps certificates from Traefik to use them in Mailcow Dockerized.
https://github.com/henkelmax/traefik-mailcow-certdumper
certificate certificates docker dumper mailcow traefik traefik-docker traefik-v2 traefik2
Last synced: 4 days ago
JSON representation
Dumps certificates from Traefik to use them in Mailcow Dockerized.
- Host: GitHub
- URL: https://github.com/henkelmax/traefik-mailcow-certdumper
- Owner: henkelmax
- Created: 2020-08-16T17:50:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-19T22:01:03.000Z (over 1 year ago)
- Last Synced: 2025-04-22T17:39:08.809Z (6 months ago)
- Topics: certificate, certificates, docker, dumper, mailcow, traefik, traefik-docker, traefik-v2, traefik2
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Traefik Mailcow Certdumper
Dumps certificates from [Traefik](https://containo.us/traefik/) to use them in [Mailcow Dockerized](https://github.com/mailcow/mailcow-dockerized).
### *[Docker Hub](https://hub.docker.com/r/henkelmax/traefik-mailcow-certdumper)*
## 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
``` 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"
```