mirror of
https://github.com/RipleyBooya/ssh-tunnel.git
synced 2025-12-11 07:28:39 +01:00
18 lines
400 B
YAML
18 lines
400 B
YAML
services:
|
|
ssh-tunnel:
|
|
image: ripleybooya/ssh-tunnel
|
|
container_name: ssh-tunnel
|
|
restart: always
|
|
networks:
|
|
- internal
|
|
environment:
|
|
SSH_HOST: "your-server.com"
|
|
SSH_USER: "your-username"
|
|
REMOTE_PORTS: "127.0.0.1:5432 127.0.0.1:443"
|
|
LOCAL_PORTS: "15432 8443"
|
|
volumes:
|
|
- /path/to/id_rsa:/tmp/id_rsa:ro
|
|
|
|
networks:
|
|
internal:
|
|
driver: bridge
|