Connecting to a remote docker-compose through a bastion server

I currently have the following set-up locally. 

a ~/.ssh/config:


Host bastion-host
User my_name
IdentityFile ~/.ssh/id_rsa

Host *.*.*.*
User ubuntu
IdentityFile ~/.ssh/id_rsa
ProxyCommand ssh -W %h:%p my_name@bastion-host


I then connect through ssh to one of our servers with a simple `ssh` and in each server we have a docker-compose that has multiple containers. 

I am trying to replicate this set up with Pycharm Pro and was unsuccessful so far.


In the python interpeter list, I dont even see the docker and docker-compose options (i saw them once then they disappeared - see attached picture).


Any ideas?


Comment actions Permalink

Ok, i have restarted Pycharm and it now shows me the Docker and Docker-compose options, I still dont understand how to connect to docker-compose through ssh and bastion. 

Comment actions Permalink


Similarly, I need to run docker-compose on a remote host and not locally. Is there a way to do this?


Please sign in to leave a comment.