-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
38 lines (35 loc) · 922 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.4'
services:
sshtunneller:
depends_on:
- sshd_server_test
image: jossec101/sshtunneller
build:
context: .
container_name: sshtunneller
hostname: sshtunneller
ports:
- "80:80"
- "3306:3306"
environment:
- ssh_host=sshd_server_test
- ssh_port=22
- ssh_username=root
#- ssh_password=This_Is_a_SSH_P4SSW0RD
- ssh_private_key_password=12345
- remote_bind_addresses=[('127.0.0.1', 80),('127.0.0.1', 3306)]
- local_bind_addresses=[("0.0.0.0", 80),('0.0.0.0', 3306)]
volumes:
- ./sshd_server_test/keys:/private.key
restart: always
sshd_server_test:
image: panubo/sshd_sshtunneller
container_name: sshd_server_test
hostname: sshd_server_test
build:
context: ./sshd_server_test
ports:
- "22:22"
environment:
SSH_ENABLE_ROOT: "true"
TCP_FORWARDING: "true"