# Set a custom TRAEFIK DEFAULT CERT when using docker compose

**URL:** <https://community.traefik.io/t/set-a-custom-traefik-default-cert-when-using-docker-compose/19357>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [July 25, 2023, 5:06am UTC](https://community.traefik.io/t/set-a-custom-traefik-default-cert-when-using-docker-compose/19357 "2023-07-25T05:06:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdulee](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/abdulee/32/7387_2.png) [@Abdulee](https://community.traefik.io/u/Abdulee)\
**Post date:** [July 25, 2023, 5:06am UTC](https://community.traefik.io/t/set-a-custom-traefik-default-cert-when-using-docker-compose/19357/1 "2023-07-25T05:06:47Z")

</div>

Hello,  
I am using traefik as a proxy inside a docker container and would like to set my own custom default cert(it is not generated by letsencrypt). I read the documentation at [https tls docs](https://doc.traefik.io/traefik/https/tls/) and it seems I need to edit the config file. I tried locating the config file inside the container but I can't to find it searching traefik just gives me the location of the binary.  
I wonder if there is an easier way to do it when using docker compose. I am using the traefik:2.5 docker image. Thank you.

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [July 25, 2023, 2:07pm UTC](https://community.traefik.io/t/set-a-custom-traefik-default-cert-when-using-docker-compose/19357/2 "2023-07-25T14:07:04Z")

</div>

Why would you use an outdated Traefik version, when current is v2.10 ?

You can declare a default TLS cert in a dynamic config file, which you need to load with `provider.file` in static config. ([Doc](https://doc.traefik.io/traefik/https/tls/#default-certificate))
