Merge pull request #51 from sajad-sadra/master
easy deploy with docker-compose
This commit is contained in:
commit
9e8e9eb535
2
docker-compose/.env
Normal file
2
docker-compose/.env
Normal file
@ -0,0 +1,2 @@
|
||||
KEY=123456
|
||||
SERVER=www.yourserver.com
|
16
docker-compose/Readme.md
Normal file
16
docker-compose/Readme.md
Normal file
@ -0,0 +1,16 @@
|
||||
Deploy with docker-compose
|
||||
===========================
|
||||
**First** edit `.env` file in this directory to your appropriate value.
|
||||
|
||||
**Then** run stack with these commands:
|
||||
|
||||
- in the server
|
||||
```
|
||||
docker-compose -f server.yml up -d
|
||||
```
|
||||
- in client machine
|
||||
```
|
||||
docker-compose -f client.yml up -d
|
||||
```
|
||||
|
||||
**Now** use socks5 proxy at port `1080` of your client machine
|
9
docker-compose/client.yml
Normal file
9
docker-compose/client.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
pingtunnelServer:
|
||||
image: esrrhs/pingtunnel:latest
|
||||
restart: always
|
||||
ports:
|
||||
- 1080:1080
|
||||
command: "./pingtunnel -type client -l 0.0.0.0:1080 -s ${SERVER} -sock5 1 -key ${KEY}"
|
8
docker-compose/server.yml
Normal file
8
docker-compose/server.yml
Normal file
@ -0,0 +1,8 @@
|
||||
version: "3.7"
|
||||
|
||||
services:
|
||||
pingtunnelServer:
|
||||
image: esrrhs/pingtunnel:latest
|
||||
restart: always
|
||||
network_mode: host
|
||||
command: "./pingtunnel -type server -key ${KEY}"
|
Loading…
Reference in New Issue
Block a user