Connecting to a remote docker-compose through a bastion server

I currently have the following set-up locally. 

a ~/.ssh/config:

 

Host bastion-host
HostName my-bastion.ai
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 111.11.11.1.1` 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?

 

2 comments
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. 

0
Comment actions Permalink

Bump

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

0

Please sign in to leave a comment.