# Dynamic configuration for adding TLS certificates via Docker

**URL:** <https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [July 28, 2019, 1:18am UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053 "2019-07-28T01:18:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesGreenaway](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/jamesgreenaway/32/486_2.png) [@JamesGreenaway](https://community.traefik.io/u/JamesGreenaway)\
**Post date:** [July 28, 2019, 1:18am UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/1 "2019-07-28T01:18:08Z")

</div>

Is it possible to create a certificate and key, add it to traefik via a volume and then dynamically update traefik with docker using labels to identify their path?

I would like to remove the need to update a toml file with the following:

```auto
[[tls.certificates]]
  certFile = "/path/to/domain.cert"
  keyFile = "/path/to/domain.key"

```

and simply tell traefik about it when I run the docker service.

---

<div class="post-metadata">

**Author:** ![SantoDE](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/santode/32/393_2.png) [@SantoDE](https://community.traefik.io/u/SantoDE)\
**Post date:** [July 29, 2019, 2:21pm UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/2 "2019-07-29T14:21:24Z")

</div>

Hello @JamesGreenaway,

currently, only the file provider is capable of doing what you asked for, as you can see [here on the docs](https://docs.traefik.io/v2.0/https/tls/).

Sorry, that I cant give you another answer

---

<div class="post-metadata">

**Author:** ![trajano](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/trajano/32/247_2.png) [@trajano](https://community.traefik.io/u/trajano)\
**Post date:** [July 30, 2019, 3:02am UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/3 "2019-07-30T03:02:03Z")

</div>

any idea when they'd start supporting KV stores?

---

<div class="post-metadata">

**Author:** ![dduportal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dduportal/32/4_2.png) [@dduportal](https://community.traefik.io/u/dduportal)\
**Post date:** [July 30, 2019, 8:46am UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/4 "2019-07-30T08:46:03Z")

</div>

@trajano you can track this here: [https://github.com/containous/traefik/projects/3?card\_filter\_query=kv](https://github.com/containous/traefik/projects/3?card_filter_query=kv) .

However storing certificates in the KV store has never been production ready and might not make it in 2.0 as explained in [Please explain "Distributed Let's Encrypt" feature of TraefikEE](https://community.containo.us/t/please-explain-distributed-lets-encrypt-feature-of-traefikee/872/3) .

---

<div class="post-metadata">

**Author:** ![JamesGreenaway](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/jamesgreenaway/32/486_2.png) [@JamesGreenaway](https://community.traefik.io/u/JamesGreenaway)\
**Post date:** [July 30, 2019, 8:57am UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/5 "2019-07-30T08:57:42Z")

</div>

Is there anywhere I can track the progress of the original query?

---

<div class="post-metadata">

**Author:** ![dduportal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dduportal/32/4_2.png) [@dduportal](https://community.traefik.io/u/dduportal)\
**Post date:** [July 30, 2019, 9:04am UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/6 "2019-07-30T09:04:48Z")

</div>

What do you mean by "the original query"?

---

<div class="post-metadata">

**Author:** ![JamesGreenaway](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/jamesgreenaway/32/486_2.png) [@JamesGreenaway](https://community.traefik.io/u/JamesGreenaway)\
**Post date:** [July 30, 2019, 9:06am UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/7 "2019-07-30T09:06:24Z")

</div>

Sorry, I mean the original query of this post i.e:

> [@JamesGreenaway](#):
>
> Is it possible to create a certificate and key, add it to traefik via a volume and then dynamically update traefik with docker using labels to identify their path?

---

<div class="post-metadata">

**Author:** ![dduportal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/dduportal/32/4_2.png) [@dduportal](https://community.traefik.io/u/dduportal)\
**Post date:** [July 30, 2019, 9:19am UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/8 "2019-07-30T09:19:00Z")

</div>

Aaaaah ok. Sorry I don't know where to track this: watch the annoucement section of the comunity forum and/or the changelog maybe?

---

<div class="post-metadata">

**Author:** ![SantoDE](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/santode/32/393_2.png) [@SantoDE](https://community.traefik.io/u/SantoDE)\
**Post date:** [July 31, 2019, 3:01pm UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/9 "2019-07-31T15:01:28Z")

</div>

Maybe that's something you can follow: [https://github.com/containous/traefik/issues/5169](https://github.com/containous/traefik/issues/5169)

I just raised it

---

<div class="post-metadata">

**Author:** ![JamesGreenaway](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/jamesgreenaway/32/486_2.png) [@JamesGreenaway](https://community.traefik.io/u/JamesGreenaway)\
**Post date:** [July 31, 2019, 9:50pm UTC](https://community.traefik.io/t/dynamic-configuration-for-adding-tls-certificates-via-docker/1053/10 "2019-07-31T21:50:56Z")

</div>

Thanks @SantoDE! Hopefully they will add this soon.
