mirror of
https://github.com/RipleyBooya/ssh-tunnel.git
synced 2025-12-11 07:28:39 +01:00
Create docker-compose.yaml
This commit is contained in:
parent
06e0569ab0
commit
0874558e92
1 changed files with 20 additions and 0 deletions
20
docker-compose.yaml
Normal file
20
docker-compose.yaml
Normal 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
|
||||
Loading…
Add table
Reference in a new issue