version: "3" services: autossh: container_name: autossh-keese-registry restart: always image: jnovack/autossh network_mode: host volumes: - ./ssh/id_rsa:/id_rsa environment: - AUTOSSH_GATETIME=0 - PubkeyAuthentication=yes - StrictHostKeyChecking=false - PasswordAuthentication=no - SSH_SERVER_ALIVE_INTERVAL=30 - ExitOnForwardFailure=yes - SSH_REMOTE_USER=autotunnel - SSH_REMOTE_HOST=arwing.zinomedia.de - SSH_REMOTE_PORT=1337 - SSH_TUNNEL_PORT=8060 # incoming port on remote server - SSH_TARGET_PORT=5000 # port of application to forward