Create docker-compose.yaml

This commit is contained in:
RipleyBooya 2025-02-21 01:44:39 +01:00 committed by GitHub
parent 06e0569ab0
commit 0874558e92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

20
docker-compose.yaml Normal file
View file

@ -0,0 +1,20 @@
version: '3.8'
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