Clean up folders, which traefik-certdumper uses

master
Dennis Boldt 5 years ago committed by GitHub
parent d6cf5b991b
commit 982caa0e42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -176,20 +176,21 @@ One such example is ``mailu/traefik-certdumper``, which has been adapted for use
# !!! Also dont forget to add "TRAEFIK_DOMAIN=[...]" to your .env!
- DOMAIN=$TRAEFIK_DOMAIN
volumes:
# Folder, which contains the acme.json
- "/data/traefik:/traefik"
- "$ROOT/certs:/output"
# Folder, where your.doma.in.crt and your.doma.in.key will be written
- "/data/traefik/certs:/output"
Assuming you have ``volume-mounted`` your ``acme.json`` put to ``/data/traefik`` on your host. The dumper will then write out ``/data/traefik/ssl/your.doma.in.crt``
and ``/data/traefik/ssl/your.doma.in.key`` whenever ``acme.json`` is updated. Yay! Now lets mount this to our ``front`` container like:
Assuming you have ``volume-mounted`` your ``acme.json`` put to ``/data/traefik`` on your host. The dumper will then write out ``/data/traefik/certs/your.doma.in.crt``
and ``/data/traefik/certs/your.doma.in.key`` whenever ``acme.json`` is updated. Yay! Now lets mount this to our ``front`` container like:
.. code-block:: yaml
volumes:
- "$ROOT/overrides/nginx:/overrides"
- /data/traefik/ssl/$TRAEFIK_DOMAIN.crt:/certs/cert.pem
- /data/traefik/ssl/$TRAEFIK_DOMAIN.key:/certs/key.pem
- /data/traefik/certs/$TRAEFIK_DOMAIN.crt:/certs/cert.pem
- /data/traefik/certs/$TRAEFIK_DOMAIN.key:/certs/key.pem
.. _`Traefik`: https://traefik.io/

Loading…
Cancel
Save