export PYTHONBREAKPOINT="pudb.set_trace"
to your
~/.bashrc
ssh foobar
then you can:
DOCKER_HOST=ssh://foobar docker-compose up -d
Note: you may need to bump MaxSessions
in your server's
/etc/ssh/sshd_config
.