fcivaner / docker-ssh-tunnel

Configuration for a docker image which establishes an ssh tunnel for a single port.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-ssh-tunnel

docker-ssh-tunnel is a docker image which creates an ssh tunnel for a single port. The SSH key is provided through an environment variable.

Usage

With docker-compose

IMPORTANT: Newline characters in the SSH key variable must be represented as \n.

version: "2.4"

services:
  ssh-tunnel:
    image: "fcivaner/docker-ssh-tunnel"
    environment:
      SSH_PRIVATE_KEY: ${TUNNEL_SSH_KEY:?}
      TUNNEL_HOST: ${TUNNEL_HOST:?}
      TUNNEL_USER: ${TUNNEL_USER:?}
      REMOTE_HOST: localhost
      LOCAL_PORT: 5672
      REMOTE_PORT: 5672
    expose:
      - "5672"
    ports:
      - "5672:5672"

About

Configuration for a docker image which establishes an ssh tunnel for a single port.

License:MIT License


Languages

Language:Dockerfile 89.5%Language:Shell 10.5%