title: How to add TLS Authentication when running Orthanc Server inside a docker container?
body: <p>I am running Orthanc Server using a docker-compose file as follows</p>
  <pre><code>version: '3.1'  
  services:
    orthanc:
      image: jodogne/orthanc:1.9.7
      command: /run/secrets/ 
      container_name: orthanc1
      ports:
        - &quot;4242:4242&quot;
      secrets:
        - orthanc.json
      environment:
        - ORTHANC_NAME=MYNAME
  secrets:
    orthanc.json:
      file: orthanc.json
  </code></pre>
  <p>and the orthanc.json file is as follows</p>
  <pre><code>{
      &quot;Name&quot; : &quot;${MYNAME} in Docker Compose&quot;,
      &quot;RemoteAccessAllowed&quot; : true,
      &quot;DicomAet&quot; : &quot;MYNAME&quot;,
      &quot;DicomAlwaysAllowFind&quot; : true,
      &quot;DicomAlwaysAllowGet&quot; : true,
      &quot;DicomCheckModalityHost&quot; : false
  }
  </code></pre>
  <p>This setup is working fine, however I would like add TLS Authentication as mentioned in the link:- <a href="https://book.orthanc-server.com/faq/dicom-tls.html" rel="nofollow noreferrer">https://book.orthanc-server.com/faq/dicom-tls.html</a></p>
  <p>Now when changing my json configuration as mentioned in above link when I use command <code>docker-compose up</code> I get an error stating <code>Inexistent file Orthanc.key</code>. I looked up the issue and found an article <a href="https://groups.google.com/g/orthanc-users/c/ZUUECc9AzaU" rel="nofollow noreferrer">https://groups.google.com/g/orthanc-users/c/ZUUECc9AzaU</a> but solution here is for ssl connection and works when Orthanc Server is installed on system and path for the key is relative to the executable.</p>
  <p>Looking for advise on how to modify docker-compose.yml &amp; orthanc.json file so that when I am running Orthanc Server in a docker container I can use echoscu command from my linux machine using TLS authentication. i.e using certificate &amp; Key pair (ex <code>echoscu -v -aet MYNAME localhost 4242 +tls dcmtk.key dcmtk.crt +cf orthanc.crt</code> similar to this)</p>