Where is the well-known directory in the Dockerized Container?

I am running TeamCity Server from a linux Docker container. I am trying to enable HTTPS via Let's Encrypt. I am being asked by the server to place a file in the following path: http://<URL>/.well-known/acme-challenge/<random string>

I'm assuming that that path is somewhere in the Docker container. Can someone pls indicate where?

1 comment


TeamCity has a Tomcat server under the hood, and the methods to enable HTTPS for the TeamCity Docker container are described in the Docker container documentation: https://hub.docker.com/r/jetbrains/teamcity-server/.

There are 2 ways to implement what you requested, but as a first step, it is required that the http:///.well-known/acme-challenge/ endpoint is reachable from the internet since Let's Encrypt will send the challenge to validate it from external networks. Then, you can create a folder in /opt/teamcity/webapps (i.e., /opt/teamcity/webapps/.well-known/acme-challenge). /opt/teamcity/webapps is a default Tomcat's working directory, i.e., it is served as http:/// by Tomcat.

Another method would be to create the required directory in any other place, put the files there, and configure Tomcat to serve the directory as http:///.well-known/acme-challenge/.

As a general recommendation, the recommended way to secure HTTP traffic with TeamCity in a Docker container is to use the reverse proxy.

Best regards,


Please sign in to leave a comment.