Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stopka/traefik-dumpcerts

Docker container for exporting acme certificates from traefik's acme.json file
https://github.com/stopka/traefik-dumpcerts

Last synced: 13 days ago
JSON representation

Docker container for exporting acme certificates from traefik's acme.json file

Awesome Lists containing this project

README

        

# Traefik dumpcerts
Docker container for exporting acme certificates from traefik's `acme.json` file. It uses slightly modified [script from traefik's repository](https://github.com/containous/traefik/blob/master/contrib/scripts/dumpcerts.sh) to export certificates to several pem formats and therefore enables other software use certificates obtained by Traefik.
Certificates are exported on container start and then again every day.

## Volumes
### /etc/ssl/acme/src
Here should be the `acme.json` file mounted, so that the final path of the file is `/etc/ssl/acme/src/acme.json`. Read-only permissions are enough.

### /etc/ssl/acme/dst
Directory must have write permissions. This is the output direcotry, where all certificates are exported in following structure:
* _some.domain.name_
* `ca.crt` CA certificate chain
* `domain.crt` Domain certificate
* `domain.key` Domain private key
* `domain.pem` Domain bundle of all: key, certificate and CA chain
* `chain.crt` Domain bundle of certificates: certificate and CA chain

## Compose sample
```
version: "3.3"
services:
traefik:
image: traefik:latest
restart: always
ports:
- 80:80
- 443:443
networks:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- traefik-acme:/etc/traefik/acme
traefik-dumpcerts:
image: skorpils/traefik-dumpcerts
restart: always
volumes:
- traefik-acme:/etc/ssl/acme/src:ro
- /etc/ssl/acme:/etc/ssl/acme/dst
depends_on:
- traefik
volumes:
- traefik-acme
networks:
- proxy
```