Docker Image with alpine linux and openssh-client
Supported tags and respective Dockerfile links
- latest (Dockerfile)
For SSH tunneling
tunnel:
image: ghcr.io/f213/openssh-client:0.0.4
command: ssh -v -o StrictHostKeyChecking=no -N -L 0.0.0.0:5432:localhost:5432 tunnel-user@your-postgres-server
secrets:
- source: private_key
target: /root/.ssh/id_rsa
mode: 0600
secrets:
private_key:
external: true