# Error in deploying TTS on localhost (/run/secrets/key.pem: is a directory)

**URL:** <https://www.thethingsnetwork.org/forum/t/error-in-deploying-tts-on-localhost-run-secrets-key-pem-is-a-directory/67663>\
**Category:** Uncategorized\
**Created:** [April 22, 2024, 11:27am UTC](https://www.thethingsnetwork.org/forum/t/error-in-deploying-tts-on-localhost-run-secrets-key-pem-is-a-directory/67663 "2024-04-22T11:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![roko1950](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/r/c89c15/32.png) [@roko1950](https://www.thethingsnetwork.org/forum/u/roko1950)\
**Post date:** [April 22, 2024, 11:27am UTC](https://www.thethingsnetwork.org/forum/t/error-in-deploying-tts-on-localhost-run-secrets-key-pem-is-a-directory/67663/1 "2024-04-22T11:27:38Z")

</div>

Dear community,

I am trying to deploy the Things Stack on my localhost via Docker, but when running the last instruction ‘docker compose up -d’ I am getting the error as on the following image:

 ![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/a/1/a13f3a33aa66a19b8cc4f33c3af3baeff89500b0.png)

In the following image you can find the structure of the working directory:

![working_directory](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/7/0/70bd0dedec18b04a922462008501045bbefaffd2.png)

I am using custom certificates and I am not really sure what to do now. Is there anybody who can suggest solution for the described problem?

Thank you in advance
