Remote Docker Compose: Build with remote sources
Greetings.
I have the following situation. I have my laptop(further referred to as “Client”), that has Pycharm Professional 2024.1 and a remote server(further referred to as “Server”). I have access from Client to Server via SSH. On both machines, I have set up my project folder(it contains some large files) and I configured Client to deploy the code (via Tools/Deployment) to Server. Client has the option to use Server Docker.
I would like to run a Docker container via Docker Compose on a Server in debug mode. I can do it, but it seems be uploading all my local files to build context on the server(which makes the wait very slow and overloads the SSH connection). Is there any possible solution to tell Docker to use sources which are located on Server?
请先登录再写评论。